Rev 2289 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2287 | - | 1 | <Window xmlns:my="http://schemas.microsoft.com/winfx/2006/xaml/presentation/ribbon" |
2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||
3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||
4 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||
5 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||
6 | xmlns:local="clr-namespace:MKLiveView" |
||
7 | xmlns:WindowsPresentation="clr-namespace:GMap.NET.WindowsPresentation;assembly=GMap.NET.WindowsPresentation" |
||
8 | xmlns:ArtificialHorizon="clr-namespace:MKLiveView.ArtificialHorizon" |
||
9 | x:Class="MKLiveView.MainWindow" |
||
10 | mc:Ignorable="d" |
||
11 | Title="MK LiveView 1.0" Height="686" Width="1017" Icon="MK.ico" |
||
12 | DataContext="{Binding RelativeSource={RelativeSource Self}}" Loaded="Window_Loaded" Closing="Window_Closing"> |
||
13 | <Window.Resources> |
||
14 | <BooleanToVisibilityConverter x:Key="BooleanToVisibility" /> |
||
15 | <LinearGradientBrush x:Key="ActiveItemBrush" EndPoint="0,1" StartPoint="0,0"> |
||
16 | <GradientStop Color="#FFC6F5FF"/> |
||
17 | <GradientStop Color="#FFB6E8FF" Offset="0.18"/> |
||
18 | <GradientStop Color="#FF98CBF5" Offset="0.389"/> |
||
19 | <GradientStop Color="#FF9FD3FF" Offset="1"/> |
||
20 | </LinearGradientBrush> |
||
21 | <LinearGradientBrush x:Key="PressedItemBrush" EndPoint="0,1" StartPoint="0,0"> |
||
22 | <GradientStop Color="#FFFFEAC6"/> |
||
23 | <GradientStop Color="#FFFFD99B" Offset="0.18"/> |
||
24 | <GradientStop Color="#FFFFD07F" Offset="0.39"/> |
||
25 | <GradientStop Color="#FFFFC961" Offset="1"/> |
||
26 | </LinearGradientBrush> |
||
27 | <Style x:Key="ButtonWithoutEffectStyle" TargetType="Button"> |
||
28 | <Setter Property="Background" Value="Transparent" /> |
||
29 | <Setter Property="Template"> |
||
30 | <Setter.Value> |
||
31 | <ControlTemplate TargetType="Button"> |
||
32 | <Grid Background="{TemplateBinding Background}"> |
||
33 | <ContentPresenter /> |
||
34 | <Border Name="border" |
||
35 | BorderThickness="0" |
||
36 | Padding="4,2" |
||
37 | BorderBrush="#FFE4E4E4" |
||
38 | CornerRadius="0" |
||
39 | Background="{TemplateBinding Background}"> |
||
40 | <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" /> |
||
41 | </Border> |
||
42 | </Grid> |
||
43 | |||
44 | </ControlTemplate> |
||
45 | </Setter.Value> |
||
46 | </Setter> |
||
47 | </Style> |
||
48 | <Style TargetType="{x:Type DataGridColumnHeader}"> |
||
49 | <Setter Property="Background" Value="Transparent" /> |
||
50 | <Setter Property="Foreground" Value="#FFFFFFFF" /> |
||
51 | </Style> |
||
52 | <Style TargetType="{x:Type DataGridCell}"> |
||
53 | <Setter Property="Background" Value="Transparent" /> |
||
54 | <Setter Property="Foreground" Value="#FFFFFFFF" /> |
||
55 | </Style> |
||
56 | <Style TargetType="{x:Type DataGridRow}"> |
||
57 | <Setter Property="Background" Value="Transparent" /> |
||
58 | <Setter Property="Foreground" Value="#FFFFFFFF" /> |
||
59 | </Style> |
||
60 | <Style TargetType="{x:Type DataGridRowHeader}"> |
||
61 | <Setter Property="Background" Value="Transparent" /> |
||
62 | </Style> |
||
63 | <Style x:Key="CanvasVisibility" TargetType="{x:Type Canvas}"> |
||
64 | <Style.Triggers> |
||
65 | <DataTrigger Binding="{Binding Path=Tag.IsChecked, RelativeSource={RelativeSource Self}}" Value="False"> |
||
66 | <Setter Property="Canvas.Visibility" Value="Collapsed" /> |
||
67 | </DataTrigger> |
||
68 | </Style.Triggers> |
||
69 | </Style> |
||
70 | |||
71 | <SolidColorBrush x:Key="SliderThumb.Static.Foreground" Color="#FFE5E5E5"/> |
||
72 | <SolidColorBrush x:Key="SliderThumb.MouseOver.Background" Color="#FFDCECFC"/> |
||
73 | <SolidColorBrush x:Key="SliderThumb.MouseOver.Border" Color="#FF7Eb4EA"/> |
||
74 | <SolidColorBrush x:Key="SliderThumb.Pressed.Background" Color="#FFDAECFC"/> |
||
75 | <SolidColorBrush x:Key="SliderThumb.Pressed.Border" Color="#FF569DE5"/> |
||
76 | <SolidColorBrush x:Key="SliderThumb.Disabled.Background" Color="#FFF0F0F0"/> |
||
77 | <SolidColorBrush x:Key="SliderThumb.Disabled.Border" Color="#FFD9D9D9"/> |
||
78 | <SolidColorBrush x:Key="SliderThumb.Static.Background" Color="#FFF0F0F0"/> |
||
79 | <SolidColorBrush x:Key="SliderThumb.Static.Border" Color="#FFACACAC"/> |
||
80 | <ControlTemplate x:Key="SliderThumbHorizontalTop" TargetType="{x:Type Thumb}"> |
||
81 | <Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center"> |
||
82 | <Path x:Name="grip" Data="M 0,6 C0,6 5.5,0 5.5,0 5.5,0 11,6 11,6 11,6 11,18 11,18 11,18 0,18 0,18 0,18 0,6 0,6 z" Fill="{StaticResource SliderThumb.Static.Background}" Stretch="Fill" SnapsToDevicePixels="True" Stroke="{StaticResource SliderThumb.Static.Border}" StrokeThickness="1" UseLayoutRounding="True" VerticalAlignment="Center"/> |
||
83 | </Grid> |
||
84 | <ControlTemplate.Triggers> |
||
85 | <Trigger Property="IsMouseOver" Value="true"> |
||
86 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/> |
||
87 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/> |
||
88 | </Trigger> |
||
89 | <Trigger Property="IsDragging" Value="true"> |
||
90 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/> |
||
91 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/> |
||
92 | </Trigger> |
||
93 | <Trigger Property="IsEnabled" Value="false"> |
||
94 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/> |
||
95 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/> |
||
96 | </Trigger> |
||
97 | </ControlTemplate.Triggers> |
||
98 | </ControlTemplate> |
||
99 | <ControlTemplate x:Key="SliderThumbHorizontalBottom" TargetType="{x:Type Thumb}"> |
||
100 | <Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center"> |
||
101 | <Path x:Name="grip" Data="M 0,12 C0,12 5.5,18 5.5,18 5.5,18 11,12 11,12 11,12 11,0 11,0 11,0 0,0 0,0 0,0 0,12 0,12 z" Fill="{StaticResource SliderThumb.Static.Background}" Stretch="Fill" SnapsToDevicePixels="True" Stroke="{StaticResource SliderThumb.Static.Border}" StrokeThickness="1" UseLayoutRounding="True" VerticalAlignment="Center"/> |
||
102 | </Grid> |
||
103 | <ControlTemplate.Triggers> |
||
104 | <Trigger Property="IsMouseOver" Value="true"> |
||
105 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/> |
||
106 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/> |
||
107 | </Trigger> |
||
108 | <Trigger Property="IsDragging" Value="true"> |
||
109 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/> |
||
110 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/> |
||
111 | </Trigger> |
||
112 | <Trigger Property="IsEnabled" Value="false"> |
||
113 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/> |
||
114 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/> |
||
115 | </Trigger> |
||
116 | </ControlTemplate.Triggers> |
||
117 | </ControlTemplate> |
||
118 | <SolidColorBrush x:Key="SliderThumb.Track.Border" Color="#FFD6D6D6"/> |
||
119 | <SolidColorBrush x:Key="SliderThumb.Track.Background" Color="#FFE7EAEA"/> |
||
120 | <Style x:Key="RepeatButtonTransparent" TargetType="{x:Type RepeatButton}"> |
||
121 | <Setter Property="OverridesDefaultStyle" Value="true"/> |
||
122 | <Setter Property="Background" Value="Transparent"/> |
||
123 | <Setter Property="Focusable" Value="false"/> |
||
124 | <Setter Property="IsTabStop" Value="false"/> |
||
125 | <Setter Property="Template"> |
||
126 | <Setter.Value> |
||
127 | <ControlTemplate TargetType="{x:Type RepeatButton}"> |
||
128 | <Rectangle Fill="{TemplateBinding Background}" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}"/> |
||
129 | </ControlTemplate> |
||
130 | </Setter.Value> |
||
131 | </Setter> |
||
132 | </Style> |
||
133 | <ControlTemplate x:Key="SliderThumbHorizontalDefault" TargetType="{x:Type Thumb}"> |
||
134 | <Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center"> |
||
135 | <Path x:Name="grip" Data="M 0,0 C0,0 11,0 11,0 11,0 11,18 11,18 11,18 0,18 0,18 0,18 0,0 0,0 z" Fill="{StaticResource SliderThumb.Static.Background}" Stretch="Fill" SnapsToDevicePixels="True" Stroke="{StaticResource SliderThumb.Static.Border}" StrokeThickness="1" UseLayoutRounding="True" VerticalAlignment="Center"/> |
||
136 | </Grid> |
||
137 | <ControlTemplate.Triggers> |
||
138 | <Trigger Property="IsMouseOver" Value="true"> |
||
139 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/> |
||
140 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/> |
||
141 | </Trigger> |
||
142 | <Trigger Property="IsDragging" Value="true"> |
||
143 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/> |
||
144 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/> |
||
145 | </Trigger> |
||
146 | <Trigger Property="IsEnabled" Value="false"> |
||
147 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/> |
||
148 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/> |
||
149 | </Trigger> |
||
150 | </ControlTemplate.Triggers> |
||
151 | </ControlTemplate> |
||
152 | <ControlTemplate x:Key="SliderHorizontal" TargetType="{x:Type Slider}"> |
||
153 | <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="True"> |
||
154 | <Grid Margin="0,-3,0,3"> |
||
155 | <Grid.RowDefinitions> |
||
156 | <RowDefinition Height="Auto"/> |
||
157 | <RowDefinition Height="Auto" MinHeight="{TemplateBinding MinHeight}"/> |
||
158 | <RowDefinition Height="Auto"/> |
||
159 | </Grid.RowDefinitions> |
||
160 | <TickBar x:Name="TopTick" Fill="{TemplateBinding Foreground}" Height="4" Margin="0,0,0,2" Placement="Top" Grid.Row="0" Visibility="Collapsed"/> |
||
161 | <TickBar x:Name="BottomTick" Fill="{TemplateBinding Foreground}" Height="4" Margin="0,2,0,0" Placement="Bottom" Grid.Row="2" Visibility="Collapsed"/> |
||
162 | <Border x:Name="TrackBackground" BorderBrush="{StaticResource SliderThumb.Track.Border}" BorderThickness="1" Background="{StaticResource SliderThumb.Track.Background}" Height="4.0" Margin="5,0" Grid.Row="1" VerticalAlignment="center"> |
||
163 | <Canvas Margin="-6,-1"> |
||
164 | <Rectangle x:Name="PART_SelectionRange" Fill="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" Height="4.0" Visibility="Hidden"/> |
||
165 | </Canvas> |
||
166 | </Border> |
||
167 | <Track x:Name="PART_Track" Grid.Row="1"> |
||
168 | <Track.DecreaseRepeatButton> |
||
169 | <RepeatButton Command="{x:Static Slider.DecreaseLarge}" Style="{StaticResource RepeatButtonTransparent}" Margin="0,-3,0.13,3"/> |
||
170 | </Track.DecreaseRepeatButton> |
||
171 | <Track.IncreaseRepeatButton> |
||
172 | <RepeatButton Command="{x:Static Slider.IncreaseLarge}" Style="{StaticResource RepeatButtonTransparent}" Margin="-0.13,-3,0,3"/> |
||
173 | </Track.IncreaseRepeatButton> |
||
174 | <Track.Thumb> |
||
175 | <Thumb x:Name="Thumb" Focusable="False" Height="28" OverridesDefaultStyle="True" Template="{StaticResource SliderThumbHorizontalDefault}" VerticalAlignment="Center" Width="21" Margin="-0.13,0,0.13,0"/> |
||
176 | </Track.Thumb> |
||
177 | </Track> |
||
178 | </Grid> |
||
179 | </Border> |
||
180 | <ControlTemplate.Triggers> |
||
181 | <Trigger Property="TickPlacement" Value="TopLeft"> |
||
182 | <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/> |
||
183 | <Setter Property="Template" TargetName="Thumb" Value="{StaticResource SliderThumbHorizontalTop}"/> |
||
184 | <Setter Property="Margin" TargetName="TrackBackground" Value="5,2,5,0"/> |
||
185 | </Trigger> |
||
186 | <Trigger Property="TickPlacement" Value="BottomRight"> |
||
187 | <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/> |
||
188 | <Setter Property="Template" TargetName="Thumb" Value="{StaticResource SliderThumbHorizontalBottom}"/> |
||
189 | <Setter Property="Margin" TargetName="TrackBackground" Value="5,0,5,2"/> |
||
190 | </Trigger> |
||
191 | <Trigger Property="TickPlacement" Value="Both"> |
||
192 | <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/> |
||
193 | <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/> |
||
194 | </Trigger> |
||
195 | <Trigger Property="IsSelectionRangeEnabled" Value="true"> |
||
196 | <Setter Property="Visibility" TargetName="PART_SelectionRange" Value="Visible"/> |
||
197 | </Trigger> |
||
198 | <Trigger Property="IsKeyboardFocused" Value="true"> |
||
199 | <Setter Property="Foreground" TargetName="Thumb" Value="Blue"/> |
||
200 | </Trigger> |
||
201 | </ControlTemplate.Triggers> |
||
202 | </ControlTemplate> |
||
203 | <ControlTemplate x:Key="SliderThumbVerticalLeft" TargetType="{x:Type Thumb}"> |
||
204 | <Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center"> |
||
205 | <Path x:Name="grip" Data="M 6,11 C6,11 0,5.5 0,5.5 0,5.5 6,0 6,0 6,0 18,0 18,0 18,0 18,11 18,11 18,11 6,11 6,11 z" Fill="{StaticResource SliderThumb.Static.Background}" Stretch="Fill" Stroke="{StaticResource SliderThumb.Static.Border}"/> |
||
206 | </Grid> |
||
207 | <ControlTemplate.Triggers> |
||
208 | <Trigger Property="IsMouseOver" Value="true"> |
||
209 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/> |
||
210 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/> |
||
211 | </Trigger> |
||
212 | <Trigger Property="IsDragging" Value="true"> |
||
213 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/> |
||
214 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/> |
||
215 | </Trigger> |
||
216 | <Trigger Property="IsEnabled" Value="false"> |
||
217 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/> |
||
218 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/> |
||
219 | </Trigger> |
||
220 | </ControlTemplate.Triggers> |
||
221 | </ControlTemplate> |
||
222 | <ControlTemplate x:Key="SliderThumbVerticalRight" TargetType="{x:Type Thumb}"> |
||
223 | <Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center"> |
||
224 | <Path x:Name="grip" Data="M 12,11 C12,11 18,5.5 18,5.5 18,5.5 12,0 12,0 12,0 0,0 0,0 0,0 0,11 0,11 0,11 12,11 12,11 z" Fill="{StaticResource SliderThumb.Static.Background}" Stretch="Fill" Stroke="{StaticResource SliderThumb.Static.Border}"/> |
||
225 | </Grid> |
||
226 | <ControlTemplate.Triggers> |
||
227 | <Trigger Property="IsMouseOver" Value="true"> |
||
228 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/> |
||
229 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/> |
||
230 | </Trigger> |
||
231 | <Trigger Property="IsDragging" Value="true"> |
||
232 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/> |
||
233 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/> |
||
234 | </Trigger> |
||
235 | <Trigger Property="IsEnabled" Value="false"> |
||
236 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/> |
||
237 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/> |
||
238 | </Trigger> |
||
239 | </ControlTemplate.Triggers> |
||
240 | </ControlTemplate> |
||
241 | <ControlTemplate x:Key="SliderThumbVerticalDefault" TargetType="{x:Type Thumb}"> |
||
242 | <Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center"> |
||
243 | <Path x:Name="grip" Data="M0.5,0.5 L18.5,0.5 18.5,11.5 0.5,11.5z" Fill="{StaticResource SliderThumb.Static.Background}" Stretch="Fill" Stroke="{StaticResource SliderThumb.Static.Border}"/> |
||
244 | </Grid> |
||
245 | <ControlTemplate.Triggers> |
||
246 | <Trigger Property="IsMouseOver" Value="true"> |
||
247 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/> |
||
248 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/> |
||
249 | </Trigger> |
||
250 | <Trigger Property="IsDragging" Value="true"> |
||
251 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/> |
||
252 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/> |
||
253 | </Trigger> |
||
254 | <Trigger Property="IsEnabled" Value="false"> |
||
255 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/> |
||
256 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/> |
||
257 | </Trigger> |
||
258 | </ControlTemplate.Triggers> |
||
259 | </ControlTemplate> |
||
260 | <ControlTemplate x:Key="SliderVertical" TargetType="{x:Type Slider}"> |
||
261 | <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="True"> |
||
262 | <Grid> |
||
263 | <Grid.ColumnDefinitions> |
||
264 | <ColumnDefinition Width="Auto"/> |
||
265 | <ColumnDefinition MinWidth="{TemplateBinding MinWidth}" Width="Auto"/> |
||
266 | <ColumnDefinition Width="Auto"/> |
||
267 | </Grid.ColumnDefinitions> |
||
268 | <TickBar x:Name="TopTick" Grid.Column="0" Fill="{TemplateBinding Foreground}" Margin="0,0,2,0" Placement="Left" Visibility="Collapsed" Width="4"/> |
||
269 | <TickBar x:Name="BottomTick" Grid.Column="2" Fill="{TemplateBinding Foreground}" Margin="2,0,0,0" Placement="Right" Visibility="Collapsed" Width="4"/> |
||
270 | <Border x:Name="TrackBackground" BorderBrush="{StaticResource SliderThumb.Track.Border}" BorderThickness="1" Background="{StaticResource SliderThumb.Track.Background}" Grid.Column="1" HorizontalAlignment="center" Margin="0,5" Width="4.0"> |
||
271 | <Canvas Margin="-1,-6"> |
||
272 | <Rectangle x:Name="PART_SelectionRange" Fill="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" Visibility="Hidden" Width="4.0"/> |
||
273 | </Canvas> |
||
274 | </Border> |
||
275 | <Track x:Name="PART_Track" Grid.Column="1"> |
||
276 | <Track.DecreaseRepeatButton> |
||
277 | <RepeatButton Command="{x:Static Slider.DecreaseLarge}" Style="{StaticResource RepeatButtonTransparent}"/> |
||
278 | </Track.DecreaseRepeatButton> |
||
279 | <Track.IncreaseRepeatButton> |
||
280 | <RepeatButton Command="{x:Static Slider.IncreaseLarge}" Style="{StaticResource RepeatButtonTransparent}"/> |
||
281 | </Track.IncreaseRepeatButton> |
||
282 | <Track.Thumb> |
||
283 | <Thumb x:Name="Thumb" Focusable="False" Height="11" OverridesDefaultStyle="True" Template="{StaticResource SliderThumbVerticalDefault}" VerticalAlignment="Top" Width="18"/> |
||
284 | </Track.Thumb> |
||
285 | </Track> |
||
286 | </Grid> |
||
287 | </Border> |
||
288 | <ControlTemplate.Triggers> |
||
289 | <Trigger Property="TickPlacement" Value="TopLeft"> |
||
290 | <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/> |
||
291 | <Setter Property="Template" TargetName="Thumb" Value="{StaticResource SliderThumbVerticalLeft}"/> |
||
292 | <Setter Property="Margin" TargetName="TrackBackground" Value="2,5,0,5"/> |
||
293 | </Trigger> |
||
294 | <Trigger Property="TickPlacement" Value="BottomRight"> |
||
295 | <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/> |
||
296 | <Setter Property="Template" TargetName="Thumb" Value="{StaticResource SliderThumbVerticalRight}"/> |
||
297 | <Setter Property="Margin" TargetName="TrackBackground" Value="0,5,2,5"/> |
||
298 | </Trigger> |
||
299 | <Trigger Property="TickPlacement" Value="Both"> |
||
300 | <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/> |
||
301 | <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/> |
||
302 | </Trigger> |
||
303 | <Trigger Property="IsSelectionRangeEnabled" Value="true"> |
||
304 | <Setter Property="Visibility" TargetName="PART_SelectionRange" Value="Visible"/> |
||
305 | </Trigger> |
||
306 | <Trigger Property="IsKeyboardFocused" Value="true"> |
||
307 | <Setter Property="Foreground" TargetName="Thumb" Value="Blue"/> |
||
308 | </Trigger> |
||
309 | </ControlTemplate.Triggers> |
||
310 | </ControlTemplate> |
||
311 | <Style x:Key="TouchSliderStyle" TargetType="{x:Type Slider}"> |
||
312 | <Setter Property="Stylus.IsPressAndHoldEnabled" Value="false"/> |
||
313 | <Setter Property="Background" Value="Transparent"/> |
||
314 | <Setter Property="BorderBrush" Value="Transparent"/> |
||
315 | <Setter Property="Foreground" Value="{StaticResource SliderThumb.Static.Foreground}"/> |
||
316 | <Setter Property="Template" Value="{StaticResource SliderHorizontal}"/> |
||
317 | <Style.Triggers> |
||
318 | <Trigger Property="Orientation" Value="Vertical"> |
||
319 | <Setter Property="Template" Value="{StaticResource SliderVertical}"/> |
||
320 | </Trigger> |
||
321 | </Style.Triggers> |
||
322 | </Style> |
||
323 | <Storyboard x:Key="VoltageCritAnim" Duration="0:0:1" RepeatBehavior="Forever"> |
||
324 | <ColorAnimationUsingKeyFrames |
||
325 | Storyboard.TargetName="rectTopVoltage" |
||
326 | Storyboard.TargetProperty="Fill.(SolidColorBrush.Color)"> |
||
327 | <DiscreteColorKeyFrame KeyTime="0:0:0" Value="Red" /> |
||
328 | <DiscreteColorKeyFrame KeyTime="0:0:0.5" Value="Transparent" /> |
||
329 | </ColorAnimationUsingKeyFrames> |
||
330 | </Storyboard> |
||
2291 | - | 331 | <Storyboard x:Key="SatFixLostAnim" Duration="0:0:1" RepeatBehavior="Forever"> |
332 | <ColorAnimationUsingKeyFrames |
||
333 | Storyboard.TargetName="tbTopSats" |
||
334 | Storyboard.TargetProperty="Background.(SolidColorBrush.Color)"> |
||
335 | <DiscreteColorKeyFrame KeyTime="0:0:0" Value="Red" /> |
||
336 | <DiscreteColorKeyFrame KeyTime="0:0:0.5" Value="Transparent" /> |
||
337 | </ColorAnimationUsingKeyFrames> |
||
338 | </Storyboard> |
||
339 | <Storyboard x:Key="MagneticFieldCritAnim" Duration="0:0:1" RepeatBehavior="Forever"> |
||
340 | <ColorAnimationUsingKeyFrames |
||
341 | Storyboard.TargetName="tbTopEarthMag" |
||
342 | Storyboard.TargetProperty="Background.(SolidColorBrush.Color)"> |
||
343 | <DiscreteColorKeyFrame KeyTime="0:0:0" Value="Red" /> |
||
344 | <DiscreteColorKeyFrame KeyTime="0:0:0.5" Value="Transparent" /> |
||
345 | </ColorAnimationUsingKeyFrames> |
||
346 | </Storyboard> |
||
347 | <Storyboard x:Key="DistanceCritAnim" Duration="0:0:1" RepeatBehavior="Forever"> |
||
348 | <ColorAnimationUsingKeyFrames |
||
349 | Storyboard.TargetName="tbTopDistanceHP" |
||
350 | Storyboard.TargetProperty="Background.(SolidColorBrush.Color)"> |
||
351 | <DiscreteColorKeyFrame KeyTime="0:0:0" Value="Red" /> |
||
352 | <DiscreteColorKeyFrame KeyTime="0:0:0.5" Value="Transparent" /> |
||
353 | </ColorAnimationUsingKeyFrames> |
||
354 | </Storyboard> |
||
355 | <Storyboard x:Key="RCCritAnim" Duration="0:0:1" RepeatBehavior="Forever"> |
||
356 | <ColorAnimationUsingKeyFrames |
||
357 | Storyboard.TargetName="tbTopRC" |
||
358 | Storyboard.TargetProperty="Background.(SolidColorBrush.Color)"> |
||
359 | <DiscreteColorKeyFrame KeyTime="0:0:0" Value="Red" /> |
||
360 | <DiscreteColorKeyFrame KeyTime="0:0:0.5" Value="Transparent" /> |
||
361 | </ColorAnimationUsingKeyFrames> |
||
362 | </Storyboard> |
||
2287 | - | 363 | <Style x:Key="HideSwitchNCLabel" TargetType="{x:Type Label}"> |
364 | <Setter Property="Visibility" Value="Collapsed" /> |
||
365 | <Style.Triggers> |
||
366 | <DataTrigger Binding="{Binding Tag.Content}" Value="FC"> |
||
367 | <Setter Property="Visibility" Value="Visible" /> |
||
368 | </DataTrigger> |
||
369 | </Style.Triggers> |
||
370 | </Style> |
||
371 | <Style x:Key="HideSwitchNCButton" TargetType="{x:Type Button}"> |
||
372 | <Setter Property="Visibility" Value="Hidden" /> |
||
373 | <Style.Triggers> |
||
374 | <DataTrigger Binding="{Binding Tag.Content}" Value="FC"> |
||
375 | <Setter Property="Visibility" Value="Visible" /> |
||
376 | </DataTrigger> |
||
377 | </Style.Triggers> |
||
378 | </Style> |
||
379 | </Window.Resources> |
||
380 | <Grid> |
||
381 | <Grid x:Name="GridGMapControl"> |
||
382 | <WindowsPresentation:GMapControl x:Name="MainMap" Loaded="MainMap_Loaded" OnPositionChanged="MainMap_OnPositionChanged" OnMapZoomChanged="MainMap_OnMapZoomChanged" StylusDown="MainMap_StylusDown" StylusUp="MainMap_StylusUp" StylusMove="MainMap_StylusMove"/> |
||
383 | </Grid> |
||
384 | <Grid> |
||
385 | <Grid.LayoutTransform> |
||
386 | <ScaleTransform |
||
387 | CenterX="0" |
||
388 | CenterY="0" |
||
389 | ScaleX="{Binding ElementName=UIScaleSlider,Path=Value}" |
||
390 | ScaleY="{Binding ElementName=UIScaleSlider,Path=Value}" |
||
391 | /> |
||
392 | </Grid.LayoutTransform> |
||
393 | <Grid x:Name="GridTop" Height="36" VerticalAlignment="Top" Background="#7F000000"> |
||
394 | <Grid.LayoutTransform> |
||
395 | <ScaleTransform |
||
396 | CenterX="0" |
||
397 | CenterY="0" |
||
398 | ScaleX="{Binding ElementName=UIScaleTopSlider,Path=Value}" |
||
399 | ScaleY="{Binding ElementName=UIScaleTopSlider,Path=Value}" |
||
400 | /> |
||
401 | </Grid.LayoutTransform> |
||
402 | |||
403 | <!--<Rectangle x:Name="rctConnection" Fill="#FFF4F4F5" Height="16" Margin="0,10,7,0" Stroke="Black" VerticalAlignment="Top" HorizontalAlignment="Right" Width="15"/>--> |
||
404 | <StackPanel Orientation="Horizontal" Margin="0,0,115,0"> |
||
405 | <Canvas Margin="2,3,2,5" Width="95" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowVoltage}"> |
||
406 | <Rectangle x:Name="rectTopVoltage" HorizontalAlignment="Left" Height="28" Stroke="#FFCFCECE" VerticalAlignment="Top" Width="89" StrokeThickness="3" Fill="#00000000"/> |
||
407 | <Rectangle Fill="#FFE8E8FF" HorizontalAlignment="Left" Height="13" Stroke="#FFCFCECE" VerticalAlignment="Top" Width="6" StrokeThickness="2" Canvas.Left="89" Canvas.Top="8"/> |
||
408 | <ProgressBar x:Name="pbTopVoltage" HorizontalAlignment="Left" Height="22" VerticalAlignment="Top" Width="83" Foreground="#FF6BC37B" FontSize="14" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" BorderBrush="{x:Null}" BorderThickness="0" Background="#00000000" ToolTip="Voltage of LiPo" Canvas.Left="3" Canvas.Top="3"/> |
||
409 | <TextBox x:Name="tbTopVoltage" HorizontalAlignment="Left" Height="25" TextWrapping="Wrap" Text="0 V" VerticalAlignment="Top" Width="76" BorderBrush="{x:Null}" FontSize="14" HorizontalContentAlignment="Center" Background="{x:Null}" Padding="1" Foreground="White" VerticalContentAlignment="Center" AllowDrop="False" Focusable="False" IsHitTestVisible="False" IsTabStop="False" IsUndoEnabled="False" IsReadOnly="True" Canvas.Left="7" Canvas.Top="1"/> |
||
410 | </Canvas> |
||
411 | <Canvas Margin="1,2,2,3" Width="94" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowCapacity}"> |
||
2291 | - | 412 | <TextBox x:Name="tbTopCapacity" HorizontalAlignment="Left" Height="31" TextWrapping="Wrap" Text="0 mAh" VerticalAlignment="Top" Width="94" BorderBrush="#FFE4E4E4" FontSize="14" VerticalContentAlignment="Center" Background="#00000000" Padding="4,1,1,1" Foreground="White" ToolTip="capacity used" BorderThickness="0.5" AllowDrop="False" IsHitTestVisible="False" IsTabStop="False" IsReadOnly="True" IsUndoEnabled="False"/> |
2287 | - | 413 | <Image x:Name="imageFlightTime_Copy" Height="23.835" VerticalAlignment="Top" UseLayoutRounding="False" Source="Images/Consumption.png" HorizontalAlignment="Left" Width="25.375" Canvas.Left="67.993" Canvas.Top="4"/> |
414 | </Canvas> |
||
415 | <Canvas Margin="1,2,2,3" Width="72" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowCurrent}"> |
||
2291 | - | 416 | <TextBox x:Name="tbTopCurrent" HorizontalAlignment="Left" Height="31" TextWrapping="Wrap" Text="0.0 A" VerticalAlignment="Top" Width="72" BorderBrush="#FFE4E4E4" FontSize="14" VerticalContentAlignment="Center" Background="#00000000" Padding="4,1,1,1" Foreground="White" ToolTip="capacity used" BorderThickness="0.5" AllowDrop="False" IsHitTestVisible="False" IsTabStop="False" IsReadOnly="True" IsUndoEnabled="False"/> |
2287 | - | 417 | <Image x:Name="imageFlightTime_Copy4" Height="23.835" VerticalAlignment="Top" UseLayoutRounding="False" Source="Images/Blitz.png" HorizontalAlignment="Left" Width="16.007" Canvas.Left="56.493" Canvas.Top="4"/> |
418 | </Canvas> |
||
419 | <Canvas Margin="1,2,2,3" Width="94" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowFlightTime}"> |
||
2291 | - | 420 | <TextBox x:Name="tbTopFTime" HorizontalAlignment="Left" Height="31" TextWrapping="Wrap" Text="00:00:00" VerticalAlignment="Top" Width="94" BorderBrush="#FFE4E4E4" FontSize="14" VerticalContentAlignment="Center" Background="#00000000" Padding="4,1,1,1" Foreground="White" ToolTip="flight time since motor start" BorderThickness="0.5" AllowDrop="False" IsHitTestVisible="False" IsTabStop="False" IsReadOnly="True" IsUndoEnabled="False"/> |
2287 | - | 421 | <Image x:Name="imageFlightTime" Height="25.583" VerticalAlignment="Top" UseLayoutRounding="False" Source="Images/flighttime.png" HorizontalAlignment="Left" Width="25.375" Canvas.Left="63.331" Canvas.Top="2.252"/> |
422 | </Canvas> |
||
423 | <Canvas Margin="1,2,2,3" Width="84" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowDistanceHP}"> |
||
424 | <Rectangle HorizontalAlignment="Right" Width="84" Stroke="#FFE4E4E4" StrokeThickness="0.5" Height="31"> |
||
425 | <Rectangle.Style> |
||
426 | <Style TargetType="{x:Type Rectangle}"> |
||
427 | <Style.Triggers> |
||
428 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnTopHome}" Value="True"> |
||
429 | <Setter Property="Fill" Value="{DynamicResource ActiveItemBrush}"/> |
||
430 | </DataTrigger> |
||
431 | </Style.Triggers> |
||
432 | </Style> |
||
433 | </Rectangle.Style> |
||
434 | </Rectangle> |
||
2291 | - | 435 | <TextBox x:Name="tbTopDistanceHP" HorizontalAlignment="Left" Height="31" TextWrapping="Wrap" Text="0 m" VerticalAlignment="Top" Width="84" BorderBrush="#FFE4E4E4" FontSize="14" VerticalContentAlignment="Center" Background="#00000000" Padding="4,1,1,1" Foreground="White" ToolTip="distance to home position" BorderThickness="0.5" AllowDrop="False" IsHitTestVisible="False" IsTabStop="False" IsReadOnly="True" IsUndoEnabled="False"/> |
436 | <Image x:Name="imageHome" Height="25.583" VerticalAlignment="Top" UseLayoutRounding="False" Source="Images/Home1.png" HorizontalAlignment="Left" Width="25.375" Canvas.Left="54.831" Canvas.Top="2.252"/> |
||
2287 | - | 437 | <Button x:Name="btnTopHome" Content="" Click="btnSetHP_Click" Background="{x:Null}" BorderThickness="0" BorderBrush="{x:Null}" Height="31" VerticalAlignment="Top" Foreground="{x:Null}" Focusable="False" Style="{DynamicResource ButtonWithoutEffectStyle}" ToolTip="set home position @actual position (center screen)" HorizontalAlignment="Right" Width="84"/> |
438 | </Canvas> |
||
439 | <Canvas Margin="1,2,2,3" Width="61" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowHeight}"> |
||
2291 | - | 440 | <TextBox x:Name="tbTopHeight" HorizontalAlignment="Left" Height="31" TextWrapping="Wrap" Text="0 m" VerticalAlignment="Top" Width="61" BorderBrush="#FFE4E4E4" FontSize="14" VerticalContentAlignment="Center" Background="#00000000" Padding="4,1,1,1" Foreground="White" ToolTip="distance to home position" BorderThickness="0.5" AllowDrop="False" IsHitTestVisible="False" IsTabStop="False" IsReadOnly="True" IsUndoEnabled="False"/> |
2287 | - | 441 | <Image x:Name="imageFlightTime_Copy2" Height="23" VerticalAlignment="Top" UseLayoutRounding="False" Source="Images/Altitude.png" HorizontalAlignment="Left" Width="8.25" Canvas.Left="48.688" Canvas.Top="4"/> |
442 | </Canvas> |
||
443 | <Canvas Margin="1,2,2,1" Width="95" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowSpeed}"> |
||
2291 | - | 444 | <TextBox x:Name="tbTopSpeed" HorizontalAlignment="Left" Height="31" TextWrapping="Wrap" Text="0.0 m/s" VerticalAlignment="Top" Width="95" BorderBrush="#FFE4E4E4" FontSize="14" VerticalContentAlignment="Center" Background="#00000000" Padding="4,1,1,1" Foreground="White" ToolTip="groundspeed" BorderThickness="0.5" AllowDrop="False" IsHitTestVisible="False" IsTabStop="False" IsReadOnly="True" IsUndoEnabled="False"/> |
2287 | - | 445 | <Image x:Name="imageFlightTime_Copy3" Height="19.835" VerticalAlignment="Top" UseLayoutRounding="False" Source="Images/Tacho.png" HorizontalAlignment="Left" Width="29.375" Canvas.Left="63.754" Canvas.Top="6.25"/> |
446 | </Canvas> |
||
447 | <Canvas Margin="0,2,2,0" Width="83" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowMF}"> |
||
2291 | - | 448 | <TextBox x:Name="tbTopEarthMag" Height="31" TextWrapping="Wrap" Text="100%" VerticalAlignment="Top" BorderBrush="#FFE4E4E4" FontSize="14" VerticalContentAlignment="Center" Background="#00000000" Padding="4,1,1,1" Foreground="White" ToolTip="earth magnetic field" BorderThickness="0.5" AllowDrop="False" IsHitTestVisible="False" IsTabStop="False" IsReadOnly="True" IsUndoEnabled="False" HorizontalAlignment="Left" Width="84"/> |
2287 | - | 449 | <Image x:Name="imageEarthMag" Height="36.75" VerticalAlignment="Top" UseLayoutRounding="False" Source="Images/EarthMag.png" HorizontalAlignment="Left" Width="36.876" Canvas.Left="46.289" Canvas.Top="0.582"/> |
450 | </Canvas> |
||
451 | <Canvas Margin="1,2,2,3" Width="56" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowSatellites}"> |
||
2291 | - | 452 | <TextBox x:Name="tbTopSats" Height="31" TextWrapping="Wrap" Text="0" VerticalAlignment="Top" Background="#00000000" BorderBrush="#FFE4E4E4" Foreground="#FFFFFEFE" VerticalContentAlignment="Center" FontSize="14" Padding="4,0,0,0" BorderThickness="0.5" HorizontalAlignment="Left" Width="56" IsReadOnly="True" IsUndoEnabled="False" AllowDrop="False" IsHitTestVisible="False" IsTabStop="False" ToolTip="Satellites"/> |
2287 | - | 453 | <Image x:Name="imageSat" Height="25.958" VerticalAlignment="Top" Stretch="Fill" UseLayoutRounding="False" Source="Images/Satellite1.png" HorizontalAlignment="Left" Width="23.583" Canvas.Left="25.667" Canvas.Top="1.752"/> |
454 | </Canvas> |
||
455 | <Canvas Margin="1,2,2,2.4" Width="62" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowRC}"> |
||
2291 | - | 456 | <TextBox x:Name="tbTopRC" Height="31" TextWrapping="Wrap" Text="0" VerticalAlignment="Top" Background="#00000000" BorderBrush="#FFE4E4E4" Foreground="#FFFFFEFE" VerticalContentAlignment="Center" FontSize="14" Padding="4,0,0,0" BorderThickness="0.5" HorizontalAlignment="Left" Width="62" AllowDrop="False" IsHitTestVisible="False" IsTabStop="False" IsReadOnly="True" IsUndoEnabled="False" ToolTip="RC quality"/> |
2287 | - | 457 | <Image x:Name="imageRC" Height="27.958" VerticalAlignment="Top" UseLayoutRounding="False" Source="Images/RC1.png" HorizontalAlignment="Left" Width="23.833" Canvas.Left="33.917" Canvas.Top="1.752"/> |
458 | </Canvas> |
||
459 | </StackPanel> |
||
460 | <Canvas Margin="0,2,42,3" Width="70" HorizontalAlignment="Right"> |
||
461 | <Rectangle HorizontalAlignment="Right" Width="69" Stroke="#FFE4E4E4" StrokeThickness="0.5" Height="31"> |
||
462 | <Rectangle.Style> |
||
463 | <Style TargetType="{x:Type Rectangle}"> |
||
464 | <Style.Triggers> |
||
465 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnTopConnect}" Value="True"> |
||
466 | <Setter Property="Fill" Value="{DynamicResource ActiveItemBrush}"/> |
||
467 | </DataTrigger> |
||
468 | </Style.Triggers> |
||
469 | </Style> |
||
470 | </Rectangle.Style> |
||
471 | </Rectangle> |
||
472 | <Image x:Name="imageWiFi" Height="25.71" VerticalAlignment="Top" UseLayoutRounding="False" Source="Images/WiFi_W.png" HorizontalAlignment="Right" Width="24.083" ToolTip="Serial connection" Canvas.Left="5.417" Canvas.Top="4"/> |
||
473 | <Image x:Name="imageConn" Height="25.71" VerticalAlignment="Top" UseLayoutRounding="False" Source="Images/Data_W.png" HorizontalAlignment="Right" Width="23.833" ToolTip="Datalink to copter with auto-refresh" Canvas.Left="40.667" Canvas.Top="3.75"/> |
||
474 | <Button x:Name="btnTopConnect" Content="" Click="btnConnectToCopter_Click" Background="{x:Null}" BorderThickness="0" BorderBrush="{x:Null}" Height="31" VerticalAlignment="Top" Foreground="{x:Null}" Focusable="False" Style="{DynamicResource ButtonWithoutEffectStyle}" ToolTip="Start / stop polling data from copter" HorizontalAlignment="Right" Width="69"/> |
||
475 | </Canvas> |
||
476 | <Canvas Margin="0,2" HorizontalAlignment="Right" Width="37"> |
||
477 | <Rectangle HorizontalAlignment="Right" Width="34" Stroke="#FFE4E4E4" StrokeThickness="0.5" Height="31"> |
||
478 | <Rectangle.Style> |
||
479 | <Style TargetType="{x:Type Rectangle}"> |
||
480 | <Style.Triggers> |
||
481 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=imageFullscreen}" Value="True"> |
||
482 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
||
483 | </DataTrigger> |
||
484 | </Style.Triggers> |
||
485 | </Style> |
||
486 | </Rectangle.Style> |
||
487 | </Rectangle> |
||
488 | <Image x:Name="imageFullscreen" Height="25.458" VerticalAlignment="Top" UseLayoutRounding="False" Source="Images/Fullscreen.png" HorizontalAlignment="Right" Width="22.75" MouseDown="imageFullscreen_MouseDown" ToolTip="Toggle fullscreen" Canvas.Left="5.75" Canvas.Top="4.002"/> |
||
489 | </Canvas> |
||
490 | </Grid> |
||
491 | <Grid x:Name="GridSideBar" Background="#66000000" Margin="0,36,0,0" HorizontalAlignment="Left" Width="23"> |
||
492 | </Grid> |
||
493 | <Label x:Name="labelData" Content="Data" HorizontalAlignment="Left" VerticalAlignment="Top" Height="22" Width="74" Padding="0" MouseDown="labelData_MouseDown" RenderTransformOrigin="0.5,0.5" Margin="-26,215,0,0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="14" > |
||
494 | <Label.RenderTransform> |
||
495 | <TransformGroup> |
||
496 | <ScaleTransform/> |
||
497 | <SkewTransform/> |
||
498 | <RotateTransform Angle="-90"/> |
||
499 | <TranslateTransform/> |
||
500 | </TransformGroup> |
||
501 | </Label.RenderTransform> |
||
502 | <Label.Style> |
||
503 | <Style TargetType="{x:Type Label}"> |
||
504 | <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/> |
||
505 | <Style.Triggers> |
||
506 | <Trigger Property="IsMouseOver" Value="True"> |
||
507 | <Setter Property="Background" Value="{DynamicResource PressedItemBrush}"/> |
||
508 | </Trigger> |
||
509 | <DataTrigger Binding="{Binding IsVisible, ElementName=GridData}" Value="True"> |
||
510 | <Setter Property="Background" Value="{DynamicResource ActiveItemBrush}"/> |
||
511 | </DataTrigger> |
||
512 | </Style.Triggers> |
||
513 | </Style> |
||
514 | </Label.Style> |
||
515 | </Label> |
||
516 | <Label x:Name="labelSettings" Content="Settings" HorizontalAlignment="Left" VerticalAlignment="Top" Height="22" Width="74" Padding="0" RenderTransformOrigin="0.5,0.5" Margin="-26,290,0,0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" MouseDown="labelSettings_MouseDown" FontSize="14"> |
||
517 | <Label.RenderTransform> |
||
518 | <TransformGroup> |
||
519 | <ScaleTransform/> |
||
520 | <SkewTransform/> |
||
521 | <RotateTransform Angle="-90"/> |
||
522 | <TranslateTransform/> |
||
523 | </TransformGroup> |
||
524 | </Label.RenderTransform> |
||
525 | <Label.Style> |
||
526 | <Style TargetType="{x:Type Label}"> |
||
527 | <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/> |
||
528 | <Style.Triggers> |
||
529 | <Trigger Property="IsMouseOver" Value="True"> |
||
530 | <Setter Property="Background" Value="{DynamicResource PressedItemBrush}"/> |
||
531 | </Trigger> |
||
532 | <DataTrigger Binding="{Binding IsVisible, ElementName=GridSettings}" Value="True"> |
||
533 | <Setter Property="Background" Value="{DynamicResource ActiveItemBrush}"/> |
||
534 | </DataTrigger> |
||
535 | </Style.Triggers> |
||
536 | </Style> |
||
537 | </Label.Style> |
||
538 | </Label> |
||
539 | <Grid x:Name="GridData" Background="#7F000000" HorizontalAlignment="Left" Width="174" Margin="23,36,0,0" Visibility="Hidden" > |
||
540 | <TextBlock x:Name="tbVolt" HorizontalAlignment="Left" Height="23" Margin="106,26,-11,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
541 | <TextBlock x:Name="tbCur" HorizontalAlignment="Left" Height="23" Margin="106,47,-11,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
542 | <Label x:Name="label6" Content="CRC-Error" Margin="53,0,31,0" VerticalAlignment="Bottom" Background="{x:Null}" Foreground="White"/> |
||
543 | <TextBox x:Name="tbCrc" Height="21" Margin="117,0,2,1" TextWrapping="Wrap" Text="0" VerticalAlignment="Bottom" Padding="-9,0,0,0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" BorderBrush="{x:Null}" SelectionBrush="{x:Null}" Foreground="White" Background="{x:Null}"/> |
||
544 | <Label x:Name="label6_Copy" Content="Controller:" HorizontalAlignment="Left" Margin="4,-3,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
545 | <TextBox x:Name="tbCtrl" HorizontalAlignment="Left" Height="21" Margin="107,0,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="27" Padding="-9,0,0,0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" BorderBrush="{x:Null}" SelectionBrush="{x:Null}" Foreground="White" Background="{x:Null}" FontSize="16"/> |
||
546 | <Label x:Name="label6_Copy1" Content="SPI-Error" Margin="53,0,36,15" Background="{x:Null}" Foreground="White" Height="26" VerticalAlignment="Bottom"/> |
||
547 | <TextBox x:Name="tbSPI" Margin="117,0,2,16" TextWrapping="Wrap" Text="0" Padding="-9,0,0,0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" BorderBrush="{x:Null}" SelectionBrush="{x:Null}" Foreground="White" Background="{x:Null}" Height="21" VerticalAlignment="Bottom"/> |
||
548 | <Label x:Name="label6_Copy2" Content="I2C-Error" Margin="53,0,35,30" Background="{x:Null}" Foreground="White" Height="26" VerticalAlignment="Bottom"/> |
||
549 | <TextBox x:Name="tbI2C" Margin="117,0,2,31" TextWrapping="Wrap" Text="0" Padding="-9,0,0,0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" BorderBrush="{x:Null}" SelectionBrush="{x:Null}" Foreground="White" Background="{x:Null}" Height="21" VerticalAlignment="Bottom"/> |
||
550 | <Label x:Name="label6_Copy3" Content="Voltage" HorizontalAlignment="Left" Margin="9,22,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
551 | <Label x:Name="label6_Copy4" Content="Current" HorizontalAlignment="Left" Margin="9,43,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
552 | <TextBlock x:Name="tbCapacity" HorizontalAlignment="Left" Height="23" Margin="106,68,-11,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
553 | <Label x:Name="label6_Copy5" Content="Capacity" HorizontalAlignment="Left" Margin="9,64,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
554 | <TextBlock x:Name="tbFTime" HorizontalAlignment="Left" Height="23" Margin="106,92,-11,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
555 | <TextBlock x:Name="tbRCQ" HorizontalAlignment="Left" Height="23" Margin="106,113,-11,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
556 | <Label x:Name="label6_Copy6" Content="Flying time" HorizontalAlignment="Left" Margin="9,88,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
557 | <Label x:Name="label6_Copy7" Content="RC quality" HorizontalAlignment="Left" Margin="9,109,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
558 | <TextBlock x:Name="tbMagF" HorizontalAlignment="Left" Height="23" Margin="106,150,-11,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
559 | <Label x:Name="label6_Copy8" Content="Mag. field" HorizontalAlignment="Left" Margin="9,146,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
560 | <TextBlock x:Name="tbSats" HorizontalAlignment="Left" Height="23" Margin="106,172,-11,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
561 | <TextBlock x:Name="tbSpeed" HorizontalAlignment="Left" Height="23" Margin="106,193,-11,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
562 | <Label x:Name="label6_Copy9" Content="Satellites" HorizontalAlignment="Left" Margin="9,168,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
563 | <Label x:Name="label6_Copy10" Content="Gr. speed" HorizontalAlignment="Left" Margin="9,189,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
564 | <TextBlock x:Name="tbAlt" HorizontalAlignment="Left" Height="23" Margin="106,214,-11,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
565 | <Label x:Name="label6_Copy11" Content="Altitude" HorizontalAlignment="Left" Margin="9,210,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
566 | <TextBlock x:Name="tbHeading" HorizontalAlignment="Left" Height="23" Margin="106,234,-11,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
567 | <Label x:Name="label6_Copy12" Content="Heading" HorizontalAlignment="Left" Margin="9,230,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
568 | <TextBlock x:Name="tbPitch" HorizontalAlignment="Left" Height="23" Margin="106,255,-11,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
569 | <Label x:Name="label6_Copy13" Content="Pitch" HorizontalAlignment="Left" Margin="9,251,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
570 | <TextBlock x:Name="tbRoll" HorizontalAlignment="Left" Height="23" Margin="106,277,-11,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
571 | <Label x:Name="label6_Copy14" Content="Roll" HorizontalAlignment="Left" Margin="9,273,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
572 | <TextBlock x:Name="tbHP" HorizontalAlignment="Left" Height="23" Margin="106,299,-11,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
573 | <Label x:Name="label6_Copy15" Content="Distance HP" HorizontalAlignment="Left" Margin="9,295,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
574 | <TextBlock x:Name="tbHP1" HorizontalAlignment="Left" Height="23" Margin="106,319,-11,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
575 | <Label x:Name="label6_Copy16" Content="(Distance ???)" HorizontalAlignment="Left" Margin="5,315,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
576 | <TextBlock x:Name="tbWP" HorizontalAlignment="Left" Height="23" Margin="106,338,-11,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
577 | <Label x:Name="label6_Copy17" Content="Distance WP" HorizontalAlignment="Left" Margin="9,334,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
578 | <Label x:Name="label6_Copy18" Content="NC-Error" Margin="53,0,35,46" Background="{x:Null}" Foreground="White" Height="26" VerticalAlignment="Bottom"/> |
||
579 | <TextBox x:Name="tbNCErr" Margin="117,0,2,47" TextWrapping="Wrap" Text="0" Padding="-9,0,0,0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" BorderBrush="{x:Null}" SelectionBrush="{x:Null}" Foreground="White" Background="{x:Null}" Height="21" VerticalAlignment="Bottom"/> |
||
580 | <TextBlock x:Name="tbWPCount" HorizontalAlignment="Left" Height="23" Margin="106,357,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
581 | <Label x:Name="label6_Copy19" Content="WP count" HorizontalAlignment="Left" Margin="9,353,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
582 | <TextBlock x:Name="tbWPIndex" HorizontalAlignment="Left" Height="23" Margin="106,375,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
583 | <Label x:Name="label6_Copy20" Content="WP-Index" HorizontalAlignment="Left" Margin="9,371,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
584 | </Grid> |
||
585 | <Grid x:Name="GridSettings" Background="#7B000000" HorizontalAlignment="Left" Width="233" Margin="23,36,0,0"> |
||
586 | <TabControl x:Name="tabControlSettings" HorizontalAlignment="Left" Width="229" Background="{x:Null}"> |
||
587 | <TabItem Header="General" Margin="0,0,-0.237,0"> |
||
588 | <Grid x:Name="TabGridGeneral"> |
||
589 | <local:SerialPortCtrl x:Name="serialPortCtrl" HorizontalAlignment="Left" Height="255" Margin="11,5,0,0" VerticalAlignment="Top" Width="210"/> |
||
590 | <GroupBox x:Name="groupBox" Header="timings autoupdate (ms)" HorizontalAlignment="Left" Height="129" Margin="10,278,0,0" VerticalAlignment="Top" Width="210" Foreground="White" BorderThickness="0.5,0.5,0.4,0.4" FontSize="14"> |
||
591 | <Grid Margin="0,0,-12,-6"> |
||
592 | <Label x:Name="label" Content="debug values" HorizontalAlignment="Left" Margin="4,13,0,0" VerticalAlignment="Top" Foreground="White" Padding="0"/> |
||
593 | <Label x:Name="label_Copy" Content="Nav-Ctrl values" HorizontalAlignment="Left" Margin="4,36,0,0" VerticalAlignment="Top" Foreground="White" Padding="0"/> |
||
594 | <Label x:Name="label_Copy1" Content="BL-Ctrl values" HorizontalAlignment="Left" Margin="4,59,0,0" VerticalAlignment="Top" Foreground="White" Padding="0"/> |
||
595 | <Label x:Name="label_Copy2" Content="OSD values" HorizontalAlignment="Left" Margin="4,82,0,0" VerticalAlignment="Top" Foreground="White" Padding="0"/> |
||
596 | <ComboBox x:Name="cBoxTimingsDebug" HorizontalAlignment="Left" Height="23" Margin="105,10,0,0" VerticalAlignment="Top" Width="61" Padding="6,0,0,0" DropDownClosed="cBoxTimingsDebug_DropDownClosed"/> |
||
597 | <ComboBox x:Name="cBoxTimingsNav" HorizontalAlignment="Left" Height="23" Margin="105,33,0,0" VerticalAlignment="Top" Width="61" Padding="6,0,0,0" DropDownClosed="cBoxTimingsNav_DropDownClosed"/> |
||
598 | <ComboBox x:Name="cBoxTimingsBl" HorizontalAlignment="Left" Height="23" Margin="105,56,0,0" VerticalAlignment="Top" Width="61" Padding="6,0,0,0" DropDownClosed="cBoxTimingsBl_DropDownClosed"/> |
||
599 | <ComboBox x:Name="cBoxTimingsOSD" HorizontalAlignment="Left" Height="23" Margin="105,79,0,0" VerticalAlignment="Top" Width="61" Padding="6,0,0,0" DropDownClosed="cBoxTimingsOSD_DropDownClosed"/> |
||
600 | <CheckBox x:Name="chkbAutoDbg" Content="" HorizontalAlignment="Left" Height="16" Margin="173,13,0,0" VerticalAlignment="Top" Width="20" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" BorderThickness="2" FontSize="18" Padding="0" Click="chkbAutoDbg_Click"/> |
||
601 | <CheckBox x:Name="chkbAutoNav" Content="" HorizontalAlignment="Left" Height="16" Margin="173,36,0,0" VerticalAlignment="Top" Width="20" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" BorderThickness="2" FontSize="18" Padding="0" Click="chkbAutoNav_Click"/> |
||
602 | <CheckBox x:Name="chkbAutoBL" Content="" HorizontalAlignment="Left" Height="16" Margin="173,59,0,0" VerticalAlignment="Top" Width="20" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" BorderThickness="2" FontSize="18" Padding="0" Click="chkbAutoBL_Click"/> |
||
603 | <CheckBox x:Name="chkbAutoOSD" Content="" HorizontalAlignment="Left" Height="16" Margin="173,82,0,0" VerticalAlignment="Top" Width="20" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" BorderThickness="2" FontSize="18" Padding="0" Click="chkbAutoOSD_Click"/> |
||
604 | <Label x:Name="label_Copy3" Content="LiPo Cells" HorizontalAlignment="Left" Margin="-6,121,0,-29.62" VerticalAlignment="Top" Foreground="White" Padding="0" Width="63"/> |
||
605 | <ComboBox x:Name="cBoxLiPoCells" HorizontalAlignment="Left" Height="23" Margin="57,120,0,-33.62" VerticalAlignment="Top" Width="47" Padding="6,0,0,0" DropDownClosed="cBoxLiPoCells_DropDownClosed"/> |
||
606 | <Label x:Name="label_Copy4" Content="Capacity" HorizontalAlignment="Left" Margin="4,150,0,-58.62" VerticalAlignment="Top" Foreground="White" Padding="0" Width="63" Visibility="Hidden"/> |
||
607 | <Label x:Name="label_Copy5" Content="Motors" HorizontalAlignment="Left" Margin="111,122,0,-30.62" VerticalAlignment="Top" Foreground="White" Padding="0" Width="51"/> |
||
608 | <ComboBox x:Name="cBoxMotors" HorizontalAlignment="Left" Height="23" Margin="160,120,0,-33.62" VerticalAlignment="Top" Width="47" Padding="6,0,0,0" DropDownClosed="cBoxMotors_DropDownClosed"/> |
||
609 | |||
610 | |||
611 | </Grid> |
||
612 | </GroupBox> |
||
613 | <Button x:Name="buttonSwitchNC" Content="switch to NC" HorizontalAlignment="Left" Height="36" Margin="11,471,0,0" VerticalAlignment="Top" Width="86" Click="buttonSwitchNC_Click" Style="{StaticResource HideSwitchNCButton}" Tag="{Binding ElementName=tbCtrl}"/> |
||
614 | <TextBox x:Name="tbSettingsCapa" HorizontalAlignment="Left" Height="21" Margin="74,457,0,0" TextWrapping="Wrap" Text="5000" VerticalAlignment="Top" Width="36" Visibility="Hidden"/> |
||
615 | </Grid> |
||
616 | </TabItem> |
||
617 | <TabItem Header="Style" Margin="-0.763,0,-8.193,0"> |
||
618 | <Grid x:Name="TabGridStyle"> |
||
619 | <Label x:Name="label_Copy6" Content="Main window scale" HorizontalAlignment="Left" Margin="9,7,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="122"/> |
||
620 | <Label x:Name="labelUIScale" HorizontalAlignment="Left" Margin="117,7,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="42" Content="{Binding Value, ElementName=UIScaleSlider}"> |
||
621 | <Label.Style> |
||
622 | <Style TargetType="{x:Type Label}"> |
||
623 | <Style.Triggers> |
||
624 | <DataTrigger Binding="{Binding Value, ElementName=UIScaleSlider}"> |
||
625 | <Setter Property="Content" Value="{Binding Value, ElementName=UIScaleSlider}"/> |
||
626 | </DataTrigger> |
||
627 | </Style.Triggers> |
||
628 | </Style> |
||
629 | </Label.Style> |
||
630 | </Label> |
||
631 | <Slider x:Name="UIScaleSlider" HorizontalAlignment="Left" Height="29" Margin="4,28,0,0" VerticalAlignment="Top" Width="206" Maximum="2" Minimum="0.7" Value="1" FontSize="20" Style="{DynamicResource TouchSliderStyle}" /> |
||
632 | <Slider x:Name="UIScaleTopSlider" HorizontalAlignment="Left" Height="16" Margin="9,74,0,0" VerticalAlignment="Top" Width="207" Value="1" Maximum="2" Minimum="0.5" ValueChanged="UIScaleTopSlider_ValueChanged"/> |
||
633 | <Label x:Name="label_Copy8" Content="Top bar scale" HorizontalAlignment="Left" Margin="14,57,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="95"/> |
||
634 | <Label x:Name="labelTopBarScale" HorizontalAlignment="Left" Margin="95,57,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="42" Content="{Binding Value, ElementName=UIScaleTopSlider}"> |
||
635 | <Label.Style> |
||
636 | <Style TargetType="{x:Type Label}"> |
||
637 | <Style.Triggers> |
||
638 | <DataTrigger Binding="{Binding Value, ElementName=UIScaleTopSlider}"> |
||
639 | <Setter Property="Content" Value="{Binding Value, ElementName=UIScaleTopSlider}"/> |
||
640 | </DataTrigger> |
||
641 | </Style.Triggers> |
||
642 | </Style> |
||
643 | </Label.Style> |
||
644 | </Label> |
||
645 | <Slider x:Name="UIScaleMotorsSlider" HorizontalAlignment="Left" Height="16" Margin="9,112,0,0" VerticalAlignment="Top" Width="207" Value="1" Maximum="2" Minimum="0.5"/> |
||
646 | <Label x:Name="label_Copy9" Content="Motors scale" HorizontalAlignment="Left" Margin="14,95,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="95"/> |
||
647 | <Label x:Name="labelMotorsScale" HorizontalAlignment="Left" Margin="95,95,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="42" Content="{Binding Value, ElementName=UIScaleMotorsSlider}"> |
||
648 | <Label.Style> |
||
649 | <Style TargetType="{x:Type Label}"> |
||
650 | <Style.Triggers> |
||
651 | <DataTrigger Binding="{Binding Value, ElementName=UIScaleMotorsSlider}"> |
||
652 | <Setter Property="Content" Value="{Binding Value, ElementName=UIScaleMotorsSlider}"/> |
||
653 | </DataTrigger> |
||
654 | </Style.Triggers> |
||
655 | </Style> |
||
656 | </Label.Style> |
||
657 | </Label> |
||
658 | <Slider x:Name="UIScaleOSDSlider" HorizontalAlignment="Left" Height="16" Margin="9,148,0,0" VerticalAlignment="Top" Width="207" Value="1" Maximum="2" Minimum="0.5"/> |
||
659 | <Label x:Name="label_Copy10" Content="OSD scale" HorizontalAlignment="Left" Margin="14,131,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="95"/> |
||
660 | <Label x:Name="labelOSDScale" HorizontalAlignment="Left" Margin="95,131,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="42" Content="{Binding Value, ElementName=UIScaleOSDSlider}"> |
||
661 | <Label.Style> |
||
662 | <Style TargetType="{x:Type Label}"> |
||
663 | <Style.Triggers> |
||
664 | <DataTrigger Binding="{Binding Value, ElementName=UIScaleOSDSlider}"> |
||
665 | <Setter Property="Content" Value="{Binding Value, ElementName=UIScaleOSDSlider}"/> |
||
666 | </DataTrigger> |
||
667 | </Style.Triggers> |
||
668 | </Style> |
||
669 | </Label.Style> |
||
670 | </Label> |
||
671 | <Slider x:Name="UIScaleLOGSlider" HorizontalAlignment="Left" Height="16" Margin="9,184,0,0" VerticalAlignment="Top" Width="207" Value="1" Maximum="2" Minimum="0.5"/> |
||
672 | <Label x:Name="label_Copy11" Content="LOG scale" HorizontalAlignment="Left" Margin="14,167,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="95"/> |
||
673 | <Label x:Name="labelLOGScale" HorizontalAlignment="Left" Margin="95,167,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="42" Content="{Binding Value, ElementName=UIScaleLOGSlider}"> |
||
674 | <Label.Style> |
||
675 | <Style TargetType="{x:Type Label}"> |
||
676 | <Style.Triggers> |
||
677 | <DataTrigger Binding="{Binding Value, ElementName=UIScaleLOGSlider}"> |
||
678 | <Setter Property="Content" Value="{Binding Value, ElementName=UIScaleLOGSlider}"/> |
||
679 | </DataTrigger> |
||
680 | </Style.Triggers> |
||
681 | </Style> |
||
682 | </Label.Style> |
||
683 | </Label> |
||
684 | <Slider x:Name="UIScaleHorizonSlider" HorizontalAlignment="Left" Height="16" Margin="9,220,0,0" VerticalAlignment="Top" Width="207" Value="1" Maximum="2" Minimum="0.5"/> |
||
685 | <Label x:Name="label_Copy12" Content="Horizon scale" HorizontalAlignment="Left" Margin="14,203,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="95"/> |
||
686 | <Label x:Name="labelHorizonScale" HorizontalAlignment="Left" Margin="95,203,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="42" Content="{Binding Value, ElementName=UIScaleHorizonSlider}"> |
||
687 | <Label.Style> |
||
688 | <Style TargetType="{x:Type Label}"> |
||
689 | <Style.Triggers> |
||
690 | <DataTrigger Binding="{Binding Value, ElementName=UIScaleHorizonSlider}"> |
||
691 | <Setter Property="Content" Value="{Binding Value, ElementName=UIScaleHorizonSlider}"/> |
||
692 | </DataTrigger> |
||
693 | </Style.Triggers> |
||
694 | </Style> |
||
695 | </Label.Style> |
||
696 | </Label> |
||
697 | <Button x:Name="buttonUIScaleReset" Content="Reset" HorizontalAlignment="Left" Margin="14,253,0,0" VerticalAlignment="Top" Width="95" Click="buttonUIScaleReset_Click" Height="29"/> |
||
698 | <GroupBox x:Name="groupBox1" Header="Topbar items" Margin="14,333,10,0" Foreground="White" BorderThickness="0.5" Height="197" VerticalAlignment="Top"> |
||
699 | <Grid Margin="0,0,0,0"> |
||
700 | <CheckBox x:Name="chkBoxTopBarShowVoltage" Content="Voltage" Foreground="White" Margin="10,10,106,0" IsChecked="True" Height="18" VerticalAlignment="Top" /> |
||
701 | <CheckBox x:Name="chkBoxTopBarShowCapacity" Content="Capacity" Foreground="White" Margin="10,26,106,0" IsChecked="True" Height="18" VerticalAlignment="Top" /> |
||
702 | <CheckBox x:Name="chkBoxTopBarShowCurrent" Content="Current" Foreground="White" Margin="10,42,106,0" IsChecked="True" Height="18" VerticalAlignment="Top" /> |
||
703 | <CheckBox x:Name="chkBoxTopBarShowFlightTime" Content="FlightTime" Foreground="White" Margin="10,58,82,0" IsChecked="True" Height="18" VerticalAlignment="Top" /> |
||
704 | <CheckBox x:Name="chkBoxTopBarShowDistanceHP" Content="Distance Home" Foreground="White" Margin="10,75,70,0" IsChecked="True" Height="18" VerticalAlignment="Top" /> |
||
705 | <CheckBox x:Name="chkBoxTopBarShowHeight" Content="Height" Foreground="White" Margin="10,92,70,0" IsChecked="True" Height="18" VerticalAlignment="Top" /> |
||
706 | <CheckBox x:Name="chkBoxTopBarShowSpeed" Content="GroundSpeed" Foreground="White" Margin="10,108,70,0" IsChecked="True" Height="18" VerticalAlignment="Top" /> |
||
707 | <CheckBox x:Name="chkBoxTopBarShowMF" Content="Magnetic field" Foreground="White" Margin="10,124,70,-2" IsChecked="True" Height="18" VerticalAlignment="Top" /> |
||
708 | <CheckBox x:Name="chkBoxTopBarShowSatellites" Content="Satellites" Foreground="White" Margin="10,141,70,0" IsChecked="True" Height="18" VerticalAlignment="Top" /> |
||
709 | <CheckBox x:Name="chkBoxTopBarShowRC" Content="RC quality" Foreground="White" Margin="10,157,70,0" IsChecked="True" Height="18" VerticalAlignment="Top" /> |
||
710 | </Grid> |
||
711 | </GroupBox> |
||
712 | <CheckBox x:Name="chkBoxShowHorizon" Content="Show Horizon/Heading" Foreground="White" Margin="14,551,64,0" IsChecked="True" Height="18" VerticalAlignment="Top" /> |
||
713 | <CheckBox x:Name="chkBoxSaveFullScreenState" Content="save fullscreen
scalings" Foreground="White" Margin="119,287,0,0" IsChecked="True" Height="33" VerticalAlignment="Top" VerticalContentAlignment="Center" Click="chkBoxSaveFullScreenState_Click" /> |
||
714 | <CheckBox x:Name="chkBoxSaveNormalState" Content="save normal
window scalings" Foreground="White" Margin="6,287,106,0" IsChecked="True" Height="33" VerticalAlignment="Top" VerticalContentAlignment="Center" Click="chkBoxSaveNormalState_Click" /> |
||
715 | </Grid> |
||
716 | </TabItem> |
||
717 | <TabItem Header="Map" Height="20" VerticalAlignment="Top" Margin="7.193,0,-17.257,0"> |
||
718 | <Grid x:Name="GridMapData" Margin="0,0,-3,-1" HorizontalAlignment="Left" Width="226"> |
||
719 | <CheckBox x:Name="checkBoxFollowCopter" Content="follow copter" HorizontalAlignment="Left" Margin="109,430,0,0" Width="107" RenderTransformOrigin="0.783,27.263" Foreground="White" Click="checkBoxFollowCopter_Click" FontSize="14" VerticalContentAlignment="Center" Height="20" VerticalAlignment="Top"/> |
||
720 | <TextBox Margin="6,24,10,0" x:Name="textBoxGeo" KeyUp="textBoxGeo_KeyUp" Foreground="Black" Height="22" VerticalAlignment="Top" VerticalContentAlignment="Center" Text="Landshut"/> |
||
721 | <Button x:Name="buttonGeoCoding" Content="Go To!" HorizontalAlignment="Left" Margin="6,47,0,0" VerticalAlignment="Top" Width="144" Height="26" Click="buttonGeoCoding_Click"/> |
||
722 | <Button Height="27" Margin="0,136,10,0" x:Name="buttonReloadMap" VerticalAlignment="Top" Click="ReloadMap_Click" HorizontalAlignment="Right" Width="71" Content="Reload"/> |
||
723 | <TextBox Margin="6,87,36,0" x:Name="textBoxLat" Height="23" VerticalAlignment="Top" VerticalContentAlignment="Center" /> |
||
724 | <TextBox Margin="6,111,36,0" x:Name="textBoxLng" Height="22" VerticalAlignment="Top" VerticalContentAlignment="Center" /> |
||
725 | <Button Height="27" HorizontalAlignment="Left" Margin="6,136,0,0" x:Name="buttonGeoLoc" VerticalAlignment="Top" Width="63" Click="buttonGeoLoc_Click" Content="Go To!"/> |
||
726 | <Label Height="23" HorizontalAlignment="Right" Margin="0,87,4,0" x:Name="label2" VerticalAlignment="Top" Width="27" VerticalContentAlignment="Center" Foreground="White" Content="lat"/> |
||
727 | <Label Height="29" HorizontalAlignment="Right" Margin="0,108,4,0" x:Name="label3" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="27" Foreground="White" Content="lng"/> |
||
728 | |||
729 | |||
730 | <ComboBox FontSize="12" Margin="6,190,10,0" x:Name="comboBoxMapType" Height="25" VerticalAlignment="Top" SelectedItem="{Binding MapProvider, ElementName=MainMap}"/> |
||
731 | <Label HorizontalAlignment="Right" Margin="0,167,110,0" x:Name="label1" Width="109" Height="28" VerticalAlignment="Top" Foreground="White" Content="Map provider"/> |
||
732 | <ComboBox FontSize="12" Height="25" Margin="6,234,10,0" x:Name="comboBoxMode" VerticalAlignment="Top" DropDownClosed="comboBoxMode_DropDownClosed" /> |
||
733 | <Label Height="32" HorizontalAlignment="Right" Margin="0,210,128,0" x:Name="label5" VerticalAlignment="Top" Width="91" Foreground="White" Content="Caching Mode"/> |
||
734 | <Button x:Name="buttonPrefetch" Content="Prefetch cache" HorizontalAlignment="Left" Margin="6,261,0,0" VerticalAlignment="Top" Width="144" Height="26" Click="buttonPrefetch_Click"/> |
||
735 | <Label HorizontalAlignment="Right" Margin="0,0,99,0" x:Name="label1_Copy" Width="120" Height="29" VerticalAlignment="Top" Foreground="White" Content="Geocoding location"/> |
||
736 | <TextBox Margin="6,373,36,0" x:Name="textBoxLat_currentPos" VerticalContentAlignment="Center" Height="23" VerticalAlignment="Top" /> |
||
737 | <TextBox Margin="6,397,36,0" x:Name="textBoxLng_currentPos" VerticalContentAlignment="Center" Height="22" VerticalAlignment="Top" /> |
||
738 | <Label Height="23" HorizontalAlignment="Right" Margin="0,373,4,0" x:Name="label2_Copy" VerticalAlignment="Top" Width="27" VerticalContentAlignment="Center" Foreground="White" Content="lat"/> |
||
739 | <Label Height="29" HorizontalAlignment="Right" Margin="0,394,4,0" x:Name="label3_Copy" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="27" Foreground="White" Content="lng"/> |
||
740 | <Label HorizontalAlignment="Right" Margin="0,349,111,0" x:Name="label1_Copy1" Width="109" Foreground="White" Content="Current position" Height="28" VerticalAlignment="Top"/> |
||
741 | <Slider x:Name="sliderMapZoom" Style="{DynamicResource TouchSliderStyle}" HorizontalAlignment="Left" Margin="10,319,0,0" Width="206" Maximum="24" SmallChange="1" Value="0" IsSnapToTickEnabled="True" ValueChanged="sliderMapZoom_ValueChanged" Height="29" VerticalAlignment="Top"/> |
||
742 | <Label Height="23" HorizontalAlignment="Right" Margin="0,291,139,0" x:Name="label2_Copy1" VerticalAlignment="Top" Width="69" VerticalContentAlignment="Center" Foreground="White" Content="Zoomlevel"/> |
||
743 | <Label Height="23" HorizontalAlignment="Right" Margin="0,291,101,0" x:Name="labelZoom" VerticalAlignment="Top" Width="49" VerticalContentAlignment="Center" Foreground="White" Content="{Binding Value,ElementName=sliderMapZoom}" HorizontalContentAlignment="Center"/> |
||
744 | <Button x:Name="btnSetHP" Content="set Home" Margin="7,428,139,0" Click="btnSetHP_Click" Height="24" VerticalAlignment="Top"/> |
||
745 | <Button x:Name="btnClearHP" Content="clear Home" Margin="7,452,139,0" Click="btnClearHP_Click" Height="25" VerticalAlignment="Top" RenderTransformOrigin="0.5,0.6"/> |
||
746 | <Button x:Name="btnGotoHP" Content="goto Home" Margin="7,477,139,0" Click="btnGotoHP_Click" Height="24" VerticalAlignment="Top"/> |
||
747 | </Grid> |
||
748 | </TabItem> |
||
2291 | - | 749 | <TabItem Header="Thresholds" Height="20" VerticalAlignment="Top" Margin="13,0,-13,0" HorizontalAlignment="Left" Width="70"> |
2287 | - | 750 | <Grid> |
2291 | - | 751 | <GroupBox x:Name="groupBox2" Header="Voltage" HorizontalAlignment="Left" Height="109" Margin="10,5,0,0" VerticalAlignment="Top" Width="203" BorderThickness="0.5" Foreground="White"> |
752 | <Grid Margin="0,0,-6,-3.96"> |
||
753 | <Slider x:Name="sliderThresholdVoltageCrit" HorizontalAlignment="Left" Height="23" Margin="10,65,0,0" VerticalAlignment="Top" Width="177" Maximum="{Binding Value, ElementName=sliderThresholdVoltageWarn}" Minimum="{Binding Minimum, ElementName=sliderThresholdVoltageWarn}" ValueChanged="sliderThresholdVoltageCrit_ValueChanged" TickFrequency="0.1" IsSnapToTickEnabled="True"/> |
||
754 | <Label x:Name="labelThresholdVoltageCrit" HorizontalAlignment="Left" Margin="86,41,0,0" VerticalAlignment="Top" Foreground="White" Height="25" Width="45" Content="{Binding Value, ElementName=sliderThresholdVoltageCrit}"> |
||
2287 | - | 755 | <Label.Style> |
756 | <Style TargetType="{x:Type Label}"> |
||
757 | <Style.Triggers> |
||
758 | <DataTrigger Binding="{Binding Value, ElementName=sliderThresholdVoltageCrit}"> |
||
759 | <Setter Property="Content" Value="{Binding Value, ElementName=sliderThresholdVoltageCrit}"/> |
||
760 | </DataTrigger> |
||
761 | </Style.Triggers> |
||
762 | </Style> |
||
763 | </Label.Style> |
||
764 | </Label> |
||
2291 | - | 765 | <Label x:Name="labelThresholdVoltageCrit_Copy" Content="critical" HorizontalAlignment="Left" Margin="8,41,0,0" VerticalAlignment="Top" Foreground="White"/> |
766 | <Slider x:Name="sliderThresholdVoltageWarn" HorizontalAlignment="Left" Height="23" Margin="10,22,0,0" VerticalAlignment="Top" Width="177" ValueChanged="sliderThresholdVoltageWarn_ValueChanged" Maximum="30" TickFrequency="0.1" IsSnapToTickEnabled="True"> |
||
2287 | - | 767 | |
768 | </Slider> |
||
2291 | - | 769 | <Label x:Name="labelThresholdVoltageWarn" HorizontalAlignment="Left" Margin="86,-2,0,0" VerticalAlignment="Top" Foreground="White" Height="25" Width="45" Content="{Binding Value, ElementName=sliderThresholdVoltageWarn}"> |
2287 | - | 770 | <Label.Style> |
771 | <Style TargetType="{x:Type Label}"> |
||
772 | <Style.Triggers> |
||
773 | <DataTrigger Binding="{Binding Value, ElementName=sliderThresholdVoltageWarn}"> |
||
774 | <Setter Property="Content" Value="{Binding Value, ElementName=sliderThresholdVoltageWarn}"/> |
||
775 | </DataTrigger> |
||
776 | </Style.Triggers> |
||
777 | </Style> |
||
778 | </Label.Style> |
||
779 | </Label> |
||
2291 | - | 780 | <Label x:Name="labelThresholdVoltageCrit_Copy2" Content="warning" HorizontalAlignment="Left" Margin="8,-2,0,0" VerticalAlignment="Top" Foreground="White"/> |
2287 | - | 781 | |
782 | </Grid> |
||
783 | </GroupBox> |
||
2291 | - | 784 | <GroupBox x:Name="groupBox2_Copy1" Header="Voice output" HorizontalAlignment="Left" Height="132" Margin="10,221,0,0" VerticalAlignment="Top" Width="203" BorderThickness="0.5" Foreground="White"> |
785 | <Grid Margin="0,0,-6,-3.96"> |
||
786 | <CheckBox x:Name="checkBoxSatfixLost" Content="SatFix lost" HorizontalAlignment="Left" Height="16" Margin="10,48,0,0" VerticalAlignment="Top" Width="90" Foreground="#FFFFFEFE" Click="checkBoxSatfixLost_Click"/> |
||
787 | <CheckBox x:Name="checkBoxMagneticField" Content="Magnetic field level" HorizontalAlignment="Left" Height="16" Margin="10,69,0,0" VerticalAlignment="Top" Width="131" Foreground="#FFFFFEFE" Click="checkBoxMagneticField_Click"/> |
||
788 | <CheckBox x:Name="checkBoxRClevel" Content="RC level" HorizontalAlignment="Left" Height="16" Margin="10,90,0,0" VerticalAlignment="Top" Width="131" Foreground="#FFFFFEFE" Click="checkBoxRClevel_Click"/> |
||
789 | <CheckBox x:Name="checkBoxThresholdDistanceVoice" Content="Distance HP" HorizontalAlignment="Left" Height="16" Margin="10,27,0,0" VerticalAlignment="Top" Width="90" Foreground="#FFFFFEFE" Click="checkBoxThresholdDistanceVoice_Click"/> |
||
790 | <CheckBox x:Name="checkBoxThresholdVoltageVoice" Content="Battery voltage" HorizontalAlignment="Left" Height="16" Margin="10,6,0,0" VerticalAlignment="Top" Width="112" Foreground="#FFFFFEFE" Click="checkBoxThresholdVoltageVoice_Click"/> |
||
791 | </Grid> |
||
792 | </GroupBox> |
||
793 | <GroupBox x:Name="grpBox" Header="Distance HP" HorizontalAlignment="Left" Height="71" Margin="10,118,0,0" VerticalAlignment="Top" Width="203" BorderThickness="0.5" Foreground="White"> |
||
794 | <Grid Margin="0,0,-6,-3.96"> |
||
795 | <Slider x:Name="sliderThresholdDistanceWarn" HorizontalAlignment="Left" Height="23" Margin="10,27,0,0" VerticalAlignment="Top" Width="177" ValueChanged="sliderThresholdDistanceWarn_ValueChanged" Maximum="1000" IsSnapToTickEnabled="True" Minimum="10" SmallChange="1" Value="100"/> |
||
796 | <Label x:Name="labelThresholdDistanceWarn" HorizontalAlignment="Left" Margin="86,3,0,0" VerticalAlignment="Top" Foreground="White" Height="25" Width="45" Content="{Binding Value, ElementName=sliderThresholdDistanceWarn}"> |
||
797 | <Label.Style> |
||
798 | <Style TargetType="{x:Type Label}"> |
||
799 | <Style.Triggers> |
||
800 | <DataTrigger Binding="{Binding Value, ElementName=sliderThresholdDistanceWarn}"> |
||
801 | <Setter Property="Content" Value="{Binding Value, ElementName=sliderThresholdDistanceWarn}"/> |
||
802 | </DataTrigger> |
||
803 | </Style.Triggers> |
||
804 | </Style> |
||
805 | </Label.Style> |
||
806 | </Label> |
||
807 | |||
808 | </Grid> |
||
809 | </GroupBox> |
||
2287 | - | 810 | </Grid> |
811 | </TabItem> |
||
812 | </TabControl> |
||
813 | </Grid> |
||
814 | <Border BorderThickness="0,2,0,0" Height="2" Margin="0,34,0,0" VerticalAlignment="Top" Visibility="Hidden"> |
||
815 | <Border.BorderBrush> |
||
816 | <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> |
||
817 | <GradientStop Color="#FF9DCAF9" Offset="0"/> |
||
818 | <GradientStop Color="#FF004385" Offset="1"/> |
||
819 | </LinearGradientBrush> |
||
820 | </Border.BorderBrush> |
||
821 | </Border> |
||
822 | <ArtificialHorizon:ArtificialHorizon x:Name="ArtHor" Margin="0,0,-41,-26" Height="143" Width="177" HorizontalAlignment="Right" VerticalAlignment="Bottom" Visibility="{Binding IsChecked, ElementName=chkBoxShowHorizon, Converter={StaticResource BooleanToVisibility}}"> |
||
823 | <ArtificialHorizon:ArtificialHorizon.RenderTransform> |
||
824 | <ScaleTransform |
||
825 | CenterX="136" |
||
826 | CenterY="117" |
||
827 | ScaleX="{Binding ElementName=UIScaleHorizonSlider,Path=Value}" |
||
828 | ScaleY="{Binding ElementName=UIScaleHorizonSlider,Path=Value}" |
||
829 | /> |
||
830 | </ArtificialHorizon:ArtificialHorizon.RenderTransform> |
||
831 | </ArtificialHorizon:ArtificialHorizon> |
||
832 | <Label x:Name="labelLog" Content="LOG" Padding="0" RenderTransformOrigin="0.5,0.5" Margin="-26,0,0,29" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" MouseDown="labelLog_MouseDown" FontSize="14" HorizontalAlignment="Left" Width="74" Height="22" VerticalAlignment="Bottom"> |
||
833 | <Label.RenderTransform> |
||
834 | <TransformGroup> |
||
835 | <ScaleTransform/> |
||
836 | <SkewTransform/> |
||
837 | <RotateTransform Angle="-90"/> |
||
838 | <TranslateTransform/> |
||
839 | </TransformGroup> |
||
840 | </Label.RenderTransform> |
||
841 | <Label.Style> |
||
842 | <Style TargetType="{x:Type Label}"> |
||
843 | <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/> |
||
844 | <Style.Triggers> |
||
845 | <Trigger Property="IsMouseOver" Value="True"> |
||
846 | <Setter Property="Background" Value="{DynamicResource PressedItemBrush}"/> |
||
847 | </Trigger> |
||
848 | <DataTrigger Binding="{Binding IsVisible, ElementName=GridLog}" Value="True"> |
||
849 | <Setter Property="Background" Value="{DynamicResource ActiveItemBrush}"/> |
||
850 | </DataTrigger> |
||
851 | </Style.Triggers> |
||
852 | </Style> |
||
853 | </Label.Style> |
||
854 | </Label> |
||
855 | <Grid x:Name="GridLog" Margin="257,0,0,0" Background="#66000000" Height="66" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="510"> |
||
856 | <Grid.LayoutTransform> |
||
857 | <ScaleTransform |
||
858 | CenterX="0" |
||
859 | CenterY="0" |
||
860 | ScaleX="{Binding ElementName=UIScaleLOGSlider,Path=Value}" |
||
861 | ScaleY="{Binding ElementName=UIScaleLOGSlider,Path=Value}" |
||
862 | /> |
||
863 | </Grid.LayoutTransform> |
||
864 | <RichTextBox x:Name="rtfError" Height="60" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="216" Margin="0,0,7,2" /> |
||
865 | <RichTextBox x:Name="rtfTerminal" Margin="0,0,228,2" HorizontalAlignment="Right" Width="276" Height="60" VerticalAlignment="Bottom" /> |
||
866 | </Grid> |
||
867 | <Grid x:Name="GridMotors" Margin="0,36,0,0" Background="#66000000" Height="285" VerticalAlignment="Top" HorizontalAlignment="Right" Width="132" Visibility="Hidden"> |
||
868 | <Grid.LayoutTransform> |
||
869 | <ScaleTransform |
||
870 | CenterX="0" |
||
871 | CenterY="0" |
||
872 | ScaleX="{Binding ElementName=UIScaleMotorsSlider,Path=Value}" |
||
873 | ScaleY="{Binding ElementName=UIScaleMotorsSlider,Path=Value}" |
||
874 | /> |
||
875 | </Grid.LayoutTransform> |
||
876 | <DataGrid x:Name="dgvMotors1" HorizontalAlignment="Left" Height="272" Margin="1,3,0,0" VerticalAlignment="Top" Width="137" ItemsSource="{Binding}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="14" IsReadOnly="True" Background="{x:Null}" HorizontalGridLinesBrush="#FF688CAF" VerticalGridLinesBrush="#FF688CAF" HeadersVisibility="Column" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Disabled" BorderBrush="{x:Null}"/> |
||
877 | <!--<DataGrid x:Name="dgvMotors2" HorizontalAlignment="Left" Height="116" Margin="137,6,0,0" VerticalAlignment="Top" Width="129" ItemsSource="{Binding}" IsReadOnly="True" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" FontSize="14" Background="{x:Null}" HorizontalGridLinesBrush="#FF688CAF" VerticalGridLinesBrush="#FF688CAF" HeadersVisibility="Column" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Disabled" BorderBrush="{x:Null}" Visibility="Collapsed"/>--> |
||
878 | </Grid> |
||
879 | <Label x:Name="labelMotordata" Content="Motors" Padding="0" RenderTransformOrigin="0.5,0.5" Margin="-26,140,0,0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" MouseDown="labelMotorData_MouseDown" FontSize="14" HorizontalAlignment="Left" Width="74" Height="22" VerticalAlignment="Top"> |
||
880 | <Label.RenderTransform> |
||
881 | <TransformGroup> |
||
882 | <ScaleTransform/> |
||
883 | <SkewTransform/> |
||
884 | <RotateTransform Angle="-90"/> |
||
885 | <TranslateTransform/> |
||
886 | </TransformGroup> |
||
887 | </Label.RenderTransform> |
||
888 | <Label.Style> |
||
889 | <Style TargetType="{x:Type Label}"> |
||
890 | <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/> |
||
891 | <Style.Triggers> |
||
892 | <Trigger Property="IsMouseOver" Value="True"> |
||
893 | <Setter Property="Background" Value="{DynamicResource PressedItemBrush}"/> |
||
894 | </Trigger> |
||
895 | <DataTrigger Binding="{Binding IsVisible, ElementName=GridMotors}" Value="True"> |
||
896 | <Setter Property="Background" Value="{DynamicResource ActiveItemBrush}"/> |
||
897 | </DataTrigger> |
||
898 | </Style.Triggers> |
||
899 | </Style> |
||
900 | </Label.Style> |
||
901 | </Label> |
||
902 | <Grid x:Name="GridOSD" Margin="0,36,136,0" Background="#66000000" Height="127" VerticalAlignment="Top" HorizontalAlignment="Right" Width="257" Visibility="Hidden"> |
||
903 | <Grid.LayoutTransform> |
||
904 | <ScaleTransform |
||
905 | CenterX="0" |
||
906 | CenterY="0" |
||
907 | ScaleX="{Binding ElementName=UIScaleOSDSlider,Path=Value}" |
||
908 | ScaleY="{Binding ElementName=UIScaleOSDSlider,Path=Value}" |
||
909 | /> |
||
910 | </Grid.LayoutTransform> |
||
911 | <RichTextBox x:Name="rtfOSD" Height="83" VerticalAlignment="Top" HorizontalAlignment="Left" Width="190" Margin="10,5,0,0" FontFamily="Consolas" FontSize="16" /> |
||
912 | <ComboBox x:Name="cbOSD" HorizontalAlignment="Left" Margin="203,96,0,0" VerticalAlignment="Top" Width="47" Height="27" DropDownClosed="cbOSD_DropDownClosing"/> |
||
913 | <Button x:Name="btnOSDBackward" Content="Å" HorizontalAlignment="Left" Height="34" Margin="203,44,0,0" VerticalAlignment="Top" Width="47" FontFamily="Wingdings 3" Click="btnOSDBackward_Click"/> |
||
914 | <Button x:Name="btnOSDForward" Content="Æ" HorizontalAlignment="Left" Height="34" Margin="203,5,0,0" VerticalAlignment="Top" Width="47" FontFamily="Wingdings 3" Click="btnOSDForward_Click"/> |
||
915 | <Label x:Name="label_Copy7" Content="Page" HorizontalAlignment="Left" Margin="205,78,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="47"/> |
||
916 | <Button x:Name="btnOSDEnter" Content="" HorizontalAlignment="Left" Height="34" Margin="87,90,0,0" VerticalAlignment="Top" Width="52" Click="btnOSDEnter_Click"/> |
||
917 | <Button x:Name="btnOSDLeave" Content="" HorizontalAlignment="Left" Height="34" Margin="144,90,0,0" VerticalAlignment="Top" Width="52" Click="btnOSDLeave_Click"/> |
||
918 | </Grid> |
||
919 | <Label x:Name="labelOSD" Content="OSD" Padding="0" RenderTransformOrigin="0.5,0.5" Margin="-26,65,0,0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" MouseDown="labelOSD_MouseDown" FontSize="14" HorizontalAlignment="Left" Width="74" Height="22" VerticalAlignment="Top"> |
||
920 | <Label.RenderTransform> |
||
921 | <TransformGroup> |
||
922 | <ScaleTransform/> |
||
923 | <SkewTransform/> |
||
924 | <RotateTransform Angle="-90"/> |
||
925 | <TranslateTransform/> |
||
926 | </TransformGroup> |
||
927 | </Label.RenderTransform> |
||
928 | <Label.Style> |
||
929 | <Style TargetType="{x:Type Label}"> |
||
930 | <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/> |
||
931 | <Style.Triggers> |
||
932 | <Trigger Property="IsMouseOver" Value="True"> |
||
933 | <Setter Property="Background" Value="{DynamicResource PressedItemBrush}"/> |
||
934 | </Trigger> |
||
935 | <DataTrigger Binding="{Binding IsVisible, ElementName=GridOSD}" Value="True"> |
||
936 | <Setter Property="Background" Value="{DynamicResource ActiveItemBrush}"/> |
||
937 | </DataTrigger> |
||
938 | </Style.Triggers> |
||
939 | </Style> |
||
940 | </Label.Style> |
||
941 | </Label> |
||
942 | <Grid x:Name="GridWP" Margin="23,36,0,0" Background="#7F000000" Height="275" VerticalAlignment="Top" Visibility="Collapsed"> |
||
943 | <DataGrid x:Name="dgvWP" Height="162" Margin="10,10,10,0" VerticalAlignment="Top" Background="{x:Null}" ItemsSource="{Binding}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="14" HorizontalGridLinesBrush="#FF688CAF" VerticalGridLinesBrush="#FF688CAF" HeadersVisibility="Column" BorderBrush="{x:Null}" Padding="0"/> |
||
944 | <Button x:Name="btnGetWPList" Content="" HorizontalAlignment="Left" Height="39" Margin="10,172,0,0" VerticalAlignment="Top" Width="78" Click="btnGetWP_Click" ToolTip="Download WP-list from copter" BorderBrush="#FFBDBDBD"> |
||
945 | <Button.Background> |
||
946 | <ImageBrush ImageSource="Images/FromCopterToPc.png" Stretch="Uniform"/> |
||
947 | </Button.Background> |
||
948 | </Button> |
||
949 | <Label x:Name="label4" Content="Items" HorizontalAlignment="Left" Margin="94,177,0,0" VerticalAlignment="Top" Width="80" Foreground="White"/> |
||
950 | <Label x:Name="lblWPCount" Content="##" HorizontalAlignment="Left" Margin="128,178,0,0" VerticalAlignment="Top" Width="28" Foreground="White"/> |
||
951 | <Label x:Name="label4_Copy" Content="WP Index" HorizontalAlignment="Left" Margin="94,194,0,0" VerticalAlignment="Top" Width="80" Foreground="White" Visibility="Hidden"/> |
||
952 | <Label x:Name="lblWPIndex" Content="##" HorizontalAlignment="Left" Margin="170,194,0,0" VerticalAlignment="Top" Width="28" Foreground="White" Visibility="Hidden"/> |
||
953 | <Button x:Name="btnSendWPList" Content="" HorizontalAlignment="Left" Height="39" Margin="10,211,0,0" VerticalAlignment="Top" Width="78" ToolTip="Upload WP-list to copter" BorderBrush="#FFBDBDBD" Click="btnSendWPList_Click"> |
||
954 | <Button.Background> |
||
955 | <ImageBrush ImageSource="Images/FromPcToCopter.png" Stretch="Uniform"/> |
||
956 | </Button.Background> |
||
957 | </Button> |
||
958 | </Grid> |
||
959 | <Label x:Name="labelWaypoints" Content="Waypoints" HorizontalAlignment="Left" VerticalAlignment="Top" Height="22" Width="74" Padding="0" RenderTransformOrigin="0.5,0.5" Margin="-26,365,0,0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" MouseDown="labelWaypoints_MouseDown" FontSize="14"> |
||
960 | <Label.RenderTransform> |
||
961 | <TransformGroup> |
||
962 | <ScaleTransform/> |
||
963 | <SkewTransform/> |
||
964 | <RotateTransform Angle="-90"/> |
||
965 | <TranslateTransform/> |
||
966 | </TransformGroup> |
||
967 | </Label.RenderTransform> |
||
968 | <Label.Style> |
||
969 | <Style TargetType="{x:Type Label}"> |
||
970 | <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/> |
||
971 | <Style.Triggers> |
||
972 | <Trigger Property="IsMouseOver" Value="True"> |
||
973 | <Setter Property="Background" Value="{DynamicResource PressedItemBrush}"/> |
||
974 | </Trigger> |
||
975 | <DataTrigger Binding="{Binding IsVisible, ElementName=GridWP}" Value="True"> |
||
976 | <Setter Property="Background" Value="{DynamicResource ActiveItemBrush}"/> |
||
977 | </DataTrigger> |
||
978 | </Style.Triggers> |
||
979 | </Style> |
||
980 | </Label.Style> |
||
981 | </Label> |
||
982 | <!--<Rectangle x:Name="rctConnection" Fill="#FFF4F4F5" Height="16" Margin="0,10,7,0" Stroke="Black" VerticalAlignment="Top" HorizontalAlignment="Right" Width="15"/>--> |
||
983 | </Grid> |
||
984 | <Label x:Name="labelSwitchToNavi" Content="The communication is set to FlightControl
The necessary data can ONLY be accessed 
by the NaviControl!
Please switch to NaviControl in the settings tab" HorizontalAlignment="Left" Height="161" Margin="347,147,0,0" VerticalAlignment="Top" Width="574" Foreground="White" FontSize="26.667" Style="{StaticResource HideSwitchNCLabel}" Tag="{Binding ElementName=tbCtrl}" > |
||
985 | <Label.Background> |
||
986 | <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0"> |
||
987 | <GradientStop Color="#B2FF2121" Offset="0.457"/> |
||
988 | <GradientStop Color="Red" Offset="1"/> |
||
989 | </LinearGradientBrush> |
||
990 | </Label.Background> |
||
991 | </Label> |
||
992 | |||
993 | </Grid> |
||
994 | </Window> |