Skip to content

Commit

Permalink
Removed xaml part of SpectrumBandOverlay so it can be used as a base …
Browse files Browse the repository at this point in the history
…class in a xaml file.
  • Loading branch information
stewienj committed May 24, 2021
1 parent b781b1a commit 2a37429
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<Reference Include="PresentationFramework" />
</ItemGroup>
<ItemGroup>
<Compile Include="SpectrumBandOverlay.cs" />
<Page Include="CursorNearestRadioBandLine.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
Expand All @@ -43,10 +44,6 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="SpectrumBandOverlay.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="FrequencyRangeLineRenderer.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
Expand Down Expand Up @@ -76,9 +73,6 @@
<Compile Include="ConfigLoader\FrequencyRangeLabels.cs" />
<Compile Include="EnumeratedTypes.cs" />
<Compile Include="SpectrumBandLine.cs" />
<Compile Include="SpectrumBandOverlay.xaml.cs">
<DependentUpon>SpectrumBandOverlay.xaml</DependentUpon>
</Compile>
<Compile Include="FrequencyRangeLineRenderer.xaml.cs">
<DependentUpon>FrequencyRangeLineRenderer.xaml</DependentUpon>
</Compile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,26 @@
using System.Collections.Specialized;
using System.Linq;
using System.Windows;
using System.Windows.Input;
using System.Windows.Media;

namespace DynamicDataDisplay.RadioBand
{
/// <summary>
/// Interaction logic for SpectrumBandOverlay.xaml
/// </summary>
public partial class SpectrumBandOverlay : CanvasGraph
public class SpectrumBandOverlay : CanvasGraph
{
private bool _lineReassignmentRequired = true;

public SpectrumBandOverlay()
{
// Need to give each instance it's own collection of gradient stops
GradientStops = new List<GradientStop>();

Background = new SolidColorBrush(Colors.Transparent);
IsHitTestVisible = false;
Cursor = Cursors.None;
SnapsToDevicePixels = true;
InitializeComponent();
}

public void SelectAllAt(double coord)
Expand Down Expand Up @@ -230,7 +232,5 @@ public List<GradientStop> GradientStops
public static readonly DependencyProperty GradientStopsProperty =
DependencyProperty.Register("GradientStops", typeof(List<GradientStop>), typeof(SpectrumBandOverlay), new PropertyMetadata(null));



}
}
12 changes: 0 additions & 12 deletions src/DynamicDataDisplay.RadioBand/SpectrumBandOverlay.xaml

This file was deleted.

0 comments on commit 2a37429

Please sign in to comment.