-
Notifications
You must be signed in to change notification settings - Fork 2
/
MainWindow.xaml
94 lines (89 loc) · 3.46 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<Window x:Class="Where1.WPlot.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ScottPlot="clr-namespace:ScottPlot;assembly=ScottPlot.WPF"
mc:Ignorable="d"
Title="Where1 WPlot" Height="450" Width="800"
>
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="MenuBar.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Frame Content="{StaticResource MenuBar}" Grid.Row="0" Grid.Column="0"/>
<ScottPlot:WpfPlot Name="plotFrame"
Grid.Row="1"
Grid.Column="0"
MouseMove="plotFrame_MouseMove"
>
<ScottPlot:WpfPlot.ContextMenu>
<ContextMenu>
<MenuItem Header="Toggle Gridlines" Click="GridLineToggle_Click"/>
<MenuItem Header="Frame Settings" Click="FrameSettings_Click">
<MenuItem Header="No Frame" Tag="none"/>
<MenuItem Header="Normal Frame" Tag="normal"/>
<MenuItem Header="Corner Frame" Tag="corner"/>
<MenuItem Header="Left Frame" Tag="left"/>
<MenuItem Header="Bottom Frame" Tag="bottom"/>
</MenuItem>
<MenuItem Header="Tick Settings" Click="TickSettings_Click">
<MenuItem Header="None" Tag="none"/>
<MenuItem Header="Normal" Tag="normal"/>
<MenuItem Header="Left" Tag="left"/>
<MenuItem Header="Bottom" Tag="bottom"/>
</MenuItem>
<MenuItem Header="Theme" Click="ThemeSettings_Click">
<MenuItem Header="Default"/>
<MenuItem Header="Blue">
<MenuItem Header="Blue1"/>
<MenuItem Header="Blue2"/>
<MenuItem Header="Blue3"/>
</MenuItem>
<MenuItem Header="Light">
<MenuItem Header="Light1"/>
<MenuItem Header="Light2"/>
</MenuItem>
<MenuItem Header="Gray">
<MenuItem Header="Gray1"/>
<MenuItem Header="Gray2"/>
</MenuItem>
<MenuItem Header="Black"/>
<MenuItem Header="Control"/>
</MenuItem>
<MenuItem Header="Show Coordinates" Click="ToggleShowCoordinates_Click"/>
</ContextMenu>
</ScottPlot:WpfPlot.ContextMenu>
</ScottPlot:WpfPlot>
<Button HorizontalAlignment="Left"
Grid.Row="2" Grid.Column="0"
Click="WPlotLink_Click"
Background="White"
BorderThickness="0"
ToolTip="https://github.com/Benny121221/WPlot"
>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<Image Source="logo_full_transparent.png" Width="199" HorizontalAlignment="Left" Margin="10,0,0,0"/>
<TextBlock FontSize="40" Margin="10,0,0,0">WPlot</TextBlock>
</StackPanel>
</Button>
<Button HorizontalAlignment="Left" Grid.Row="3" Grid.Column="0" Click="ScottPlotLink_Click" Background="White" BorderThickness="0"
ToolTip="https://github.com/swharden/ScottPlot"
>
<TextBlock Grid.Row="3" Grid.Column="0" VerticalAlignment="Bottom" Margin="10,0,0,0">Powered by https://github.com/swharden/ScottPlot</TextBlock>
</Button>
</Grid>
</Window>