Details | 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" |
||
2313 | - | 9 | xmlns:wpConverter="clr-namespace:MKLiveView" |
2287 | - | 10 | x:Class="MKLiveView.MainWindow" |
11 | mc:Ignorable="d" |
||
12 | Title="MK LiveView 1.0" Height="686" Width="1017" Icon="MK.ico" |
||
2379 | - | 13 | DataContext="{Binding RelativeSource={RelativeSource Self}}" Loaded="Window_Loaded" Closing="Window_Closing" Closed="Window_Closed"> |
2287 | - | 14 | <Window.Resources> |
2313 | - | 15 | <wpConverter:waypointsConverter x:Key="wpConvert" /> |
16 | |||
2287 | - | 17 | <BooleanToVisibilityConverter x:Key="BooleanToVisibility" /> |
18 | <LinearGradientBrush x:Key="ActiveItemBrush" EndPoint="0,1" StartPoint="0,0"> |
||
19 | <GradientStop Color="#FFC6F5FF"/> |
||
20 | <GradientStop Color="#FFB6E8FF" Offset="0.18"/> |
||
21 | <GradientStop Color="#FF98CBF5" Offset="0.389"/> |
||
22 | <GradientStop Color="#FF9FD3FF" Offset="1"/> |
||
23 | </LinearGradientBrush> |
||
24 | <LinearGradientBrush x:Key="PressedItemBrush" EndPoint="0,1" StartPoint="0,0"> |
||
25 | <GradientStop Color="#FFFFEAC6"/> |
||
26 | <GradientStop Color="#FFFFD99B" Offset="0.18"/> |
||
27 | <GradientStop Color="#FFFFD07F" Offset="0.39"/> |
||
28 | <GradientStop Color="#FFFFC961" Offset="1"/> |
||
29 | </LinearGradientBrush> |
||
30 | <Style x:Key="ButtonWithoutEffectStyle" TargetType="Button"> |
||
31 | <Setter Property="Background" Value="Transparent" /> |
||
32 | <Setter Property="Template"> |
||
33 | <Setter.Value> |
||
34 | <ControlTemplate TargetType="Button"> |
||
35 | <Grid Background="{TemplateBinding Background}"> |
||
36 | <ContentPresenter /> |
||
37 | <Border Name="border" |
||
38 | BorderThickness="0" |
||
39 | Padding="4,2" |
||
40 | BorderBrush="#FFE4E4E4" |
||
41 | CornerRadius="0" |
||
42 | Background="{TemplateBinding Background}"> |
||
43 | <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" /> |
||
44 | </Border> |
||
45 | </Grid> |
||
46 | |||
47 | </ControlTemplate> |
||
48 | </Setter.Value> |
||
49 | </Setter> |
||
50 | </Style> |
||
51 | <Style TargetType="{x:Type DataGridColumnHeader}"> |
||
52 | <Setter Property="Background" Value="Transparent" /> |
||
53 | <Setter Property="Foreground" Value="#FFFFFFFF" /> |
||
54 | </Style> |
||
55 | <Style TargetType="{x:Type DataGridCell}"> |
||
56 | <Setter Property="Background" Value="Transparent" /> |
||
57 | <Setter Property="Foreground" Value="#FFFFFFFF" /> |
||
58 | </Style> |
||
59 | <Style TargetType="{x:Type DataGridRow}"> |
||
60 | <Setter Property="Background" Value="Transparent" /> |
||
61 | <Setter Property="Foreground" Value="#FFFFFFFF" /> |
||
62 | </Style> |
||
63 | <Style TargetType="{x:Type DataGridRowHeader}"> |
||
64 | <Setter Property="Background" Value="Transparent" /> |
||
65 | </Style> |
||
66 | <Style x:Key="CanvasVisibility" TargetType="{x:Type Canvas}"> |
||
67 | <Style.Triggers> |
||
68 | <DataTrigger Binding="{Binding Path=Tag.IsChecked, RelativeSource={RelativeSource Self}}" Value="False"> |
||
69 | <Setter Property="Canvas.Visibility" Value="Collapsed" /> |
||
70 | </DataTrigger> |
||
71 | </Style.Triggers> |
||
72 | </Style> |
||
73 | |||
74 | <SolidColorBrush x:Key="SliderThumb.Static.Foreground" Color="#FFE5E5E5"/> |
||
75 | <SolidColorBrush x:Key="SliderThumb.MouseOver.Background" Color="#FFDCECFC"/> |
||
76 | <SolidColorBrush x:Key="SliderThumb.MouseOver.Border" Color="#FF7Eb4EA"/> |
||
77 | <SolidColorBrush x:Key="SliderThumb.Pressed.Background" Color="#FFDAECFC"/> |
||
78 | <SolidColorBrush x:Key="SliderThumb.Pressed.Border" Color="#FF569DE5"/> |
||
79 | <SolidColorBrush x:Key="SliderThumb.Disabled.Background" Color="#FFF0F0F0"/> |
||
80 | <SolidColorBrush x:Key="SliderThumb.Disabled.Border" Color="#FFD9D9D9"/> |
||
81 | <SolidColorBrush x:Key="SliderThumb.Static.Background" Color="#FFF0F0F0"/> |
||
82 | <SolidColorBrush x:Key="SliderThumb.Static.Border" Color="#FFACACAC"/> |
||
83 | <ControlTemplate x:Key="SliderThumbHorizontalTop" TargetType="{x:Type Thumb}"> |
||
84 | <Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center"> |
||
85 | <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"/> |
||
86 | </Grid> |
||
87 | <ControlTemplate.Triggers> |
||
88 | <Trigger Property="IsMouseOver" Value="true"> |
||
89 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/> |
||
90 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/> |
||
91 | </Trigger> |
||
92 | <Trigger Property="IsDragging" Value="true"> |
||
93 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/> |
||
94 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/> |
||
95 | </Trigger> |
||
96 | <Trigger Property="IsEnabled" Value="false"> |
||
97 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/> |
||
98 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/> |
||
99 | </Trigger> |
||
100 | </ControlTemplate.Triggers> |
||
101 | </ControlTemplate> |
||
102 | <ControlTemplate x:Key="SliderThumbHorizontalBottom" TargetType="{x:Type Thumb}"> |
||
103 | <Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center"> |
||
104 | <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"/> |
||
105 | </Grid> |
||
106 | <ControlTemplate.Triggers> |
||
107 | <Trigger Property="IsMouseOver" Value="true"> |
||
108 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/> |
||
109 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/> |
||
110 | </Trigger> |
||
111 | <Trigger Property="IsDragging" Value="true"> |
||
112 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/> |
||
113 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/> |
||
114 | </Trigger> |
||
115 | <Trigger Property="IsEnabled" Value="false"> |
||
116 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/> |
||
117 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/> |
||
118 | </Trigger> |
||
119 | </ControlTemplate.Triggers> |
||
120 | </ControlTemplate> |
||
121 | <SolidColorBrush x:Key="SliderThumb.Track.Border" Color="#FFD6D6D6"/> |
||
122 | <SolidColorBrush x:Key="SliderThumb.Track.Background" Color="#FFE7EAEA"/> |
||
123 | <Style x:Key="RepeatButtonTransparent" TargetType="{x:Type RepeatButton}"> |
||
124 | <Setter Property="OverridesDefaultStyle" Value="true"/> |
||
125 | <Setter Property="Background" Value="Transparent"/> |
||
126 | <Setter Property="Focusable" Value="false"/> |
||
127 | <Setter Property="IsTabStop" Value="false"/> |
||
128 | <Setter Property="Template"> |
||
129 | <Setter.Value> |
||
130 | <ControlTemplate TargetType="{x:Type RepeatButton}"> |
||
131 | <Rectangle Fill="{TemplateBinding Background}" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}"/> |
||
132 | </ControlTemplate> |
||
133 | </Setter.Value> |
||
134 | </Setter> |
||
135 | </Style> |
||
136 | <ControlTemplate x:Key="SliderThumbHorizontalDefault" TargetType="{x:Type Thumb}"> |
||
137 | <Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center"> |
||
138 | <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"/> |
||
139 | </Grid> |
||
140 | <ControlTemplate.Triggers> |
||
141 | <Trigger Property="IsMouseOver" Value="true"> |
||
142 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/> |
||
143 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/> |
||
144 | </Trigger> |
||
145 | <Trigger Property="IsDragging" Value="true"> |
||
146 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/> |
||
147 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/> |
||
148 | </Trigger> |
||
149 | <Trigger Property="IsEnabled" Value="false"> |
||
150 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/> |
||
151 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/> |
||
152 | </Trigger> |
||
153 | </ControlTemplate.Triggers> |
||
154 | </ControlTemplate> |
||
155 | <ControlTemplate x:Key="SliderHorizontal" TargetType="{x:Type Slider}"> |
||
156 | <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="True"> |
||
157 | <Grid Margin="0,-3,0,3"> |
||
158 | <Grid.RowDefinitions> |
||
159 | <RowDefinition Height="Auto"/> |
||
160 | <RowDefinition Height="Auto" MinHeight="{TemplateBinding MinHeight}"/> |
||
161 | <RowDefinition Height="Auto"/> |
||
162 | </Grid.RowDefinitions> |
||
163 | <TickBar x:Name="TopTick" Fill="{TemplateBinding Foreground}" Height="4" Margin="0,0,0,2" Placement="Top" Grid.Row="0" Visibility="Collapsed"/> |
||
164 | <TickBar x:Name="BottomTick" Fill="{TemplateBinding Foreground}" Height="4" Margin="0,2,0,0" Placement="Bottom" Grid.Row="2" Visibility="Collapsed"/> |
||
165 | <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"> |
||
166 | <Canvas Margin="-6,-1"> |
||
167 | <Rectangle x:Name="PART_SelectionRange" Fill="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" Height="4.0" Visibility="Hidden"/> |
||
168 | </Canvas> |
||
169 | </Border> |
||
170 | <Track x:Name="PART_Track" Grid.Row="1"> |
||
171 | <Track.DecreaseRepeatButton> |
||
172 | <RepeatButton Command="{x:Static Slider.DecreaseLarge}" Style="{StaticResource RepeatButtonTransparent}" Margin="0,-3,0.13,3"/> |
||
173 | </Track.DecreaseRepeatButton> |
||
174 | <Track.IncreaseRepeatButton> |
||
175 | <RepeatButton Command="{x:Static Slider.IncreaseLarge}" Style="{StaticResource RepeatButtonTransparent}" Margin="-0.13,-3,0,3"/> |
||
176 | </Track.IncreaseRepeatButton> |
||
177 | <Track.Thumb> |
||
178 | <Thumb x:Name="Thumb" Focusable="False" Height="28" OverridesDefaultStyle="True" Template="{StaticResource SliderThumbHorizontalDefault}" VerticalAlignment="Center" Width="21" Margin="-0.13,0,0.13,0"/> |
||
179 | </Track.Thumb> |
||
180 | </Track> |
||
181 | </Grid> |
||
182 | </Border> |
||
183 | <ControlTemplate.Triggers> |
||
184 | <Trigger Property="TickPlacement" Value="TopLeft"> |
||
185 | <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/> |
||
186 | <Setter Property="Template" TargetName="Thumb" Value="{StaticResource SliderThumbHorizontalTop}"/> |
||
187 | <Setter Property="Margin" TargetName="TrackBackground" Value="5,2,5,0"/> |
||
188 | </Trigger> |
||
189 | <Trigger Property="TickPlacement" Value="BottomRight"> |
||
190 | <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/> |
||
191 | <Setter Property="Template" TargetName="Thumb" Value="{StaticResource SliderThumbHorizontalBottom}"/> |
||
192 | <Setter Property="Margin" TargetName="TrackBackground" Value="5,0,5,2"/> |
||
193 | </Trigger> |
||
194 | <Trigger Property="TickPlacement" Value="Both"> |
||
195 | <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/> |
||
196 | <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/> |
||
197 | </Trigger> |
||
198 | <Trigger Property="IsSelectionRangeEnabled" Value="true"> |
||
199 | <Setter Property="Visibility" TargetName="PART_SelectionRange" Value="Visible"/> |
||
200 | </Trigger> |
||
201 | <Trigger Property="IsKeyboardFocused" Value="true"> |
||
202 | <Setter Property="Foreground" TargetName="Thumb" Value="Blue"/> |
||
203 | </Trigger> |
||
204 | </ControlTemplate.Triggers> |
||
205 | </ControlTemplate> |
||
206 | <ControlTemplate x:Key="SliderThumbVerticalLeft" TargetType="{x:Type Thumb}"> |
||
207 | <Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center"> |
||
208 | <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}"/> |
||
209 | </Grid> |
||
210 | <ControlTemplate.Triggers> |
||
211 | <Trigger Property="IsMouseOver" Value="true"> |
||
212 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/> |
||
213 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/> |
||
214 | </Trigger> |
||
215 | <Trigger Property="IsDragging" Value="true"> |
||
216 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/> |
||
217 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/> |
||
218 | </Trigger> |
||
219 | <Trigger Property="IsEnabled" Value="false"> |
||
220 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/> |
||
221 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/> |
||
222 | </Trigger> |
||
223 | </ControlTemplate.Triggers> |
||
224 | </ControlTemplate> |
||
225 | <ControlTemplate x:Key="SliderThumbVerticalRight" TargetType="{x:Type Thumb}"> |
||
226 | <Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center"> |
||
227 | <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}"/> |
||
228 | </Grid> |
||
229 | <ControlTemplate.Triggers> |
||
230 | <Trigger Property="IsMouseOver" Value="true"> |
||
231 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/> |
||
232 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/> |
||
233 | </Trigger> |
||
234 | <Trigger Property="IsDragging" Value="true"> |
||
235 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/> |
||
236 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/> |
||
237 | </Trigger> |
||
238 | <Trigger Property="IsEnabled" Value="false"> |
||
239 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/> |
||
240 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/> |
||
241 | </Trigger> |
||
242 | </ControlTemplate.Triggers> |
||
243 | </ControlTemplate> |
||
244 | <ControlTemplate x:Key="SliderThumbVerticalDefault" TargetType="{x:Type Thumb}"> |
||
245 | <Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center"> |
||
246 | <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}"/> |
||
247 | </Grid> |
||
248 | <ControlTemplate.Triggers> |
||
249 | <Trigger Property="IsMouseOver" Value="true"> |
||
250 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/> |
||
251 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/> |
||
252 | </Trigger> |
||
253 | <Trigger Property="IsDragging" Value="true"> |
||
254 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/> |
||
255 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/> |
||
256 | </Trigger> |
||
257 | <Trigger Property="IsEnabled" Value="false"> |
||
258 | <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/> |
||
259 | <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/> |
||
260 | </Trigger> |
||
261 | </ControlTemplate.Triggers> |
||
262 | </ControlTemplate> |
||
263 | <ControlTemplate x:Key="SliderVertical" TargetType="{x:Type Slider}"> |
||
264 | <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="True"> |
||
265 | <Grid> |
||
266 | <Grid.ColumnDefinitions> |
||
267 | <ColumnDefinition Width="Auto"/> |
||
268 | <ColumnDefinition MinWidth="{TemplateBinding MinWidth}" Width="Auto"/> |
||
269 | <ColumnDefinition Width="Auto"/> |
||
270 | </Grid.ColumnDefinitions> |
||
271 | <TickBar x:Name="TopTick" Grid.Column="0" Fill="{TemplateBinding Foreground}" Margin="0,0,2,0" Placement="Left" Visibility="Collapsed" Width="4"/> |
||
272 | <TickBar x:Name="BottomTick" Grid.Column="2" Fill="{TemplateBinding Foreground}" Margin="2,0,0,0" Placement="Right" Visibility="Collapsed" Width="4"/> |
||
273 | <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"> |
||
274 | <Canvas Margin="-1,-6"> |
||
275 | <Rectangle x:Name="PART_SelectionRange" Fill="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" Visibility="Hidden" Width="4.0"/> |
||
276 | </Canvas> |
||
277 | </Border> |
||
278 | <Track x:Name="PART_Track" Grid.Column="1"> |
||
279 | <Track.DecreaseRepeatButton> |
||
280 | <RepeatButton Command="{x:Static Slider.DecreaseLarge}" Style="{StaticResource RepeatButtonTransparent}"/> |
||
281 | </Track.DecreaseRepeatButton> |
||
282 | <Track.IncreaseRepeatButton> |
||
283 | <RepeatButton Command="{x:Static Slider.IncreaseLarge}" Style="{StaticResource RepeatButtonTransparent}"/> |
||
284 | </Track.IncreaseRepeatButton> |
||
285 | <Track.Thumb> |
||
286 | <Thumb x:Name="Thumb" Focusable="False" Height="11" OverridesDefaultStyle="True" Template="{StaticResource SliderThumbVerticalDefault}" VerticalAlignment="Top" Width="18"/> |
||
287 | </Track.Thumb> |
||
288 | </Track> |
||
289 | </Grid> |
||
290 | </Border> |
||
291 | <ControlTemplate.Triggers> |
||
292 | <Trigger Property="TickPlacement" Value="TopLeft"> |
||
293 | <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/> |
||
294 | <Setter Property="Template" TargetName="Thumb" Value="{StaticResource SliderThumbVerticalLeft}"/> |
||
295 | <Setter Property="Margin" TargetName="TrackBackground" Value="2,5,0,5"/> |
||
296 | </Trigger> |
||
297 | <Trigger Property="TickPlacement" Value="BottomRight"> |
||
298 | <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/> |
||
299 | <Setter Property="Template" TargetName="Thumb" Value="{StaticResource SliderThumbVerticalRight}"/> |
||
300 | <Setter Property="Margin" TargetName="TrackBackground" Value="0,5,2,5"/> |
||
301 | </Trigger> |
||
302 | <Trigger Property="TickPlacement" Value="Both"> |
||
303 | <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/> |
||
304 | <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/> |
||
305 | </Trigger> |
||
306 | <Trigger Property="IsSelectionRangeEnabled" Value="true"> |
||
307 | <Setter Property="Visibility" TargetName="PART_SelectionRange" Value="Visible"/> |
||
308 | </Trigger> |
||
309 | <Trigger Property="IsKeyboardFocused" Value="true"> |
||
310 | <Setter Property="Foreground" TargetName="Thumb" Value="Blue"/> |
||
311 | </Trigger> |
||
312 | </ControlTemplate.Triggers> |
||
313 | </ControlTemplate> |
||
314 | <Style x:Key="TouchSliderStyle" TargetType="{x:Type Slider}"> |
||
315 | <Setter Property="Stylus.IsPressAndHoldEnabled" Value="false"/> |
||
316 | <Setter Property="Background" Value="Transparent"/> |
||
317 | <Setter Property="BorderBrush" Value="Transparent"/> |
||
318 | <Setter Property="Foreground" Value="{StaticResource SliderThumb.Static.Foreground}"/> |
||
319 | <Setter Property="Template" Value="{StaticResource SliderHorizontal}"/> |
||
320 | <Style.Triggers> |
||
321 | <Trigger Property="Orientation" Value="Vertical"> |
||
322 | <Setter Property="Template" Value="{StaticResource SliderVertical}"/> |
||
323 | </Trigger> |
||
324 | </Style.Triggers> |
||
325 | </Style> |
||
326 | <Storyboard x:Key="VoltageCritAnim" Duration="0:0:1" RepeatBehavior="Forever"> |
||
327 | <ColorAnimationUsingKeyFrames |
||
328 | Storyboard.TargetName="rectTopVoltage" |
||
329 | Storyboard.TargetProperty="Fill.(SolidColorBrush.Color)"> |
||
330 | <DiscreteColorKeyFrame KeyTime="0:0:0" Value="Red" /> |
||
331 | <DiscreteColorKeyFrame KeyTime="0:0:0.5" Value="Transparent" /> |
||
332 | </ColorAnimationUsingKeyFrames> |
||
333 | </Storyboard> |
||
2291 | - | 334 | <Storyboard x:Key="SatFixLostAnim" Duration="0:0:1" RepeatBehavior="Forever"> |
335 | <ColorAnimationUsingKeyFrames |
||
336 | Storyboard.TargetName="tbTopSats" |
||
337 | Storyboard.TargetProperty="Background.(SolidColorBrush.Color)"> |
||
338 | <DiscreteColorKeyFrame KeyTime="0:0:0" Value="Red" /> |
||
339 | <DiscreteColorKeyFrame KeyTime="0:0:0.5" Value="Transparent" /> |
||
340 | </ColorAnimationUsingKeyFrames> |
||
341 | </Storyboard> |
||
342 | <Storyboard x:Key="MagneticFieldCritAnim" Duration="0:0:1" RepeatBehavior="Forever"> |
||
343 | <ColorAnimationUsingKeyFrames |
||
344 | Storyboard.TargetName="tbTopEarthMag" |
||
345 | Storyboard.TargetProperty="Background.(SolidColorBrush.Color)"> |
||
346 | <DiscreteColorKeyFrame KeyTime="0:0:0" Value="Red" /> |
||
347 | <DiscreteColorKeyFrame KeyTime="0:0:0.5" Value="Transparent" /> |
||
348 | </ColorAnimationUsingKeyFrames> |
||
349 | </Storyboard> |
||
350 | <Storyboard x:Key="DistanceCritAnim" Duration="0:0:1" RepeatBehavior="Forever"> |
||
351 | <ColorAnimationUsingKeyFrames |
||
352 | Storyboard.TargetName="tbTopDistanceHP" |
||
353 | Storyboard.TargetProperty="Background.(SolidColorBrush.Color)"> |
||
354 | <DiscreteColorKeyFrame KeyTime="0:0:0" Value="Red" /> |
||
355 | <DiscreteColorKeyFrame KeyTime="0:0:0.5" Value="Transparent" /> |
||
356 | </ColorAnimationUsingKeyFrames> |
||
357 | </Storyboard> |
||
358 | <Storyboard x:Key="RCCritAnim" Duration="0:0:1" RepeatBehavior="Forever"> |
||
359 | <ColorAnimationUsingKeyFrames |
||
360 | Storyboard.TargetName="tbTopRC" |
||
361 | Storyboard.TargetProperty="Background.(SolidColorBrush.Color)"> |
||
362 | <DiscreteColorKeyFrame KeyTime="0:0:0" Value="Red" /> |
||
363 | <DiscreteColorKeyFrame KeyTime="0:0:0.5" Value="Transparent" /> |
||
364 | </ColorAnimationUsingKeyFrames> |
||
365 | </Storyboard> |
||
2287 | - | 366 | <Style x:Key="HideSwitchNCLabel" TargetType="{x:Type Label}"> |
367 | <Setter Property="Visibility" Value="Collapsed" /> |
||
368 | <Style.Triggers> |
||
369 | <DataTrigger Binding="{Binding Tag.Content}" Value="FC"> |
||
370 | <Setter Property="Visibility" Value="Visible" /> |
||
371 | </DataTrigger> |
||
372 | </Style.Triggers> |
||
373 | </Style> |
||
374 | <Style x:Key="HideSwitchNCButton" TargetType="{x:Type Button}"> |
||
375 | <Setter Property="Visibility" Value="Hidden" /> |
||
376 | <Style.Triggers> |
||
377 | <DataTrigger Binding="{Binding Tag.Content}" Value="FC"> |
||
378 | <Setter Property="Visibility" Value="Visible" /> |
||
379 | </DataTrigger> |
||
380 | </Style.Triggers> |
||
381 | </Style> |
||
382 | </Window.Resources> |
||
383 | <Grid> |
||
384 | <Grid x:Name="GridGMapControl"> |
||
385 | <WindowsPresentation:GMapControl x:Name="MainMap" Loaded="MainMap_Loaded" OnPositionChanged="MainMap_OnPositionChanged" OnMapZoomChanged="MainMap_OnMapZoomChanged" StylusDown="MainMap_StylusDown" StylusUp="MainMap_StylusUp" StylusMove="MainMap_StylusMove"/> |
||
386 | </Grid> |
||
387 | <Grid> |
||
388 | <Grid.LayoutTransform> |
||
389 | <ScaleTransform |
||
390 | CenterX="0" |
||
391 | CenterY="0" |
||
392 | ScaleX="{Binding ElementName=UIScaleSlider,Path=Value}" |
||
393 | ScaleY="{Binding ElementName=UIScaleSlider,Path=Value}" |
||
394 | /> |
||
395 | </Grid.LayoutTransform> |
||
396 | <Grid x:Name="GridTop" Height="36" VerticalAlignment="Top" Background="#7F000000"> |
||
397 | <Grid.LayoutTransform> |
||
398 | <ScaleTransform |
||
399 | CenterX="0" |
||
400 | CenterY="0" |
||
401 | ScaleX="{Binding ElementName=UIScaleTopSlider,Path=Value}" |
||
402 | ScaleY="{Binding ElementName=UIScaleTopSlider,Path=Value}" |
||
403 | /> |
||
404 | </Grid.LayoutTransform> |
||
405 | |||
406 | <!--<Rectangle x:Name="rctConnection" Fill="#FFF4F4F5" Height="16" Margin="0,10,7,0" Stroke="Black" VerticalAlignment="Top" HorizontalAlignment="Right" Width="15"/>--> |
||
407 | <StackPanel Orientation="Horizontal" Margin="0,0,115,0"> |
||
408 | <Canvas Margin="2,3,2,5" Width="95" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowVoltage}"> |
||
409 | <Rectangle x:Name="rectTopVoltage" HorizontalAlignment="Left" Height="28" Stroke="#FFCFCECE" VerticalAlignment="Top" Width="89" StrokeThickness="3" Fill="#00000000"/> |
||
410 | <Rectangle Fill="#FFE8E8FF" HorizontalAlignment="Left" Height="13" Stroke="#FFCFCECE" VerticalAlignment="Top" Width="6" StrokeThickness="2" Canvas.Left="89" Canvas.Top="8"/> |
||
411 | <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"/> |
||
2300 | - | 412 | <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" ToolTip="Voltage of LiPo"/> |
2287 | - | 413 | </Canvas> |
2309 | - | 414 | <Canvas Margin="1,2,2,3" Width="94" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowCapacity}" ToolTip="capacity used"> |
2291 | - | 415 | <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 | - | 416 | <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"/> |
417 | </Canvas> |
||
2309 | - | 418 | <Canvas Margin="1,2,2,3" Width="72" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowCurrent}" ToolTip="Current"> |
419 | <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="Current" BorderThickness="0.5" AllowDrop="False" IsHitTestVisible="False" IsTabStop="False" IsReadOnly="True" IsUndoEnabled="False"/> |
||
2287 | - | 420 | <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"/> |
421 | </Canvas> |
||
2309 | - | 422 | <Canvas Margin="1,2,2,3" Width="94" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowFlightTime}" ToolTip="flight time since take off"> |
423 | <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 take off" BorderThickness="0.5" AllowDrop="False" IsHitTestVisible="False" IsTabStop="False" IsReadOnly="True" IsUndoEnabled="False"/> |
||
2287 | - | 424 | <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"/> |
425 | </Canvas> |
||
426 | <Canvas Margin="1,2,2,3" Width="84" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowDistanceHP}"> |
||
427 | <Rectangle HorizontalAlignment="Right" Width="84" Stroke="#FFE4E4E4" StrokeThickness="0.5" Height="31"> |
||
428 | <Rectangle.Style> |
||
429 | <Style TargetType="{x:Type Rectangle}"> |
||
430 | <Style.Triggers> |
||
431 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnTopHome}" Value="True"> |
||
432 | <Setter Property="Fill" Value="{DynamicResource ActiveItemBrush}"/> |
||
433 | </DataTrigger> |
||
434 | </Style.Triggers> |
||
435 | </Style> |
||
436 | </Rectangle.Style> |
||
437 | </Rectangle> |
||
2291 | - | 438 | <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"/> |
439 | <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 | - | 440 | <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"/> |
441 | </Canvas> |
||
2309 | - | 442 | <Canvas Margin="1,2,2,3" Width="61" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowHeight}" ToolTip="height"> |
443 | <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="height" BorderThickness="0.5" AllowDrop="False" IsHitTestVisible="False" IsTabStop="False" IsReadOnly="True" IsUndoEnabled="False"/> |
||
2287 | - | 444 | <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"/> |
445 | </Canvas> |
||
2309 | - | 446 | <Canvas Margin="1,2,2,1" Width="95" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowSpeed}" ToolTip="groundspeed"> |
2291 | - | 447 | <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 | - | 448 | <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"/> |
449 | </Canvas> |
||
2309 | - | 450 | <Canvas Margin="0,2,2,0" Width="83" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowMF}" ToolTip="earth magnetic field"> |
2291 | - | 451 | <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 | - | 452 | <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"/> |
453 | </Canvas> |
||
2309 | - | 454 | <Canvas Margin="1,2,2,3" Width="56" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowSatellites}" ToolTip="Satellites"> |
2291 | - | 455 | <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 | - | 456 | <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"/> |
457 | </Canvas> |
||
2309 | - | 458 | <Canvas Margin="1,2,2,2.4" Width="62" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowRC}" ToolTip="RC quality level (200 max)"> |
2291 | - | 459 | <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 | - | 460 | <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"/> |
461 | </Canvas> |
||
462 | </StackPanel> |
||
463 | <Canvas Margin="0,2,42,3" Width="70" HorizontalAlignment="Right"> |
||
464 | <Rectangle HorizontalAlignment="Right" Width="69" Stroke="#FFE4E4E4" StrokeThickness="0.5" Height="31"> |
||
465 | <Rectangle.Style> |
||
466 | <Style TargetType="{x:Type Rectangle}"> |
||
467 | <Style.Triggers> |
||
468 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnTopConnect}" Value="True"> |
||
469 | <Setter Property="Fill" Value="{DynamicResource ActiveItemBrush}"/> |
||
470 | </DataTrigger> |
||
471 | </Style.Triggers> |
||
472 | </Style> |
||
473 | </Rectangle.Style> |
||
474 | </Rectangle> |
||
475 | <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"/> |
||
476 | <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"/> |
||
477 | <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"/> |
||
478 | </Canvas> |
||
479 | <Canvas Margin="0,2" HorizontalAlignment="Right" Width="37"> |
||
480 | <Rectangle HorizontalAlignment="Right" Width="34" Stroke="#FFE4E4E4" StrokeThickness="0.5" Height="31"> |
||
481 | <Rectangle.Style> |
||
482 | <Style TargetType="{x:Type Rectangle}"> |
||
483 | <Style.Triggers> |
||
484 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=imageFullscreen}" Value="True"> |
||
485 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
||
486 | </DataTrigger> |
||
487 | </Style.Triggers> |
||
488 | </Style> |
||
489 | </Rectangle.Style> |
||
490 | </Rectangle> |
||
491 | <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"/> |
||
492 | </Canvas> |
||
493 | </Grid> |
||
494 | <Grid x:Name="GridSideBar" Background="#66000000" Margin="0,36,0,0" HorizontalAlignment="Left" Width="23"> |
||
2309 | - | 495 | <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,50,-25,0" HorizontalContentAlignment="Center" VerticalContentAlignment="Stretch" FontSize="14" > |
2298 | - | 496 | <Label.RenderTransform> |
497 | <TransformGroup> |
||
498 | <ScaleTransform/> |
||
499 | <SkewTransform/> |
||
500 | <RotateTransform Angle="-90"/> |
||
501 | <TranslateTransform/> |
||
502 | </TransformGroup> |
||
503 | </Label.RenderTransform> |
||
504 | <Label.Style> |
||
505 | <Style TargetType="{x:Type Label}"> |
||
506 | <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/> |
||
507 | <Style.Triggers> |
||
508 | <Trigger Property="IsMouseOver" Value="True"> |
||
509 | <Setter Property="Background" Value="{DynamicResource PressedItemBrush}"/> |
||
510 | </Trigger> |
||
511 | <DataTrigger Binding="{Binding IsVisible, ElementName=GridData}" Value="True"> |
||
512 | <Setter Property="Background" Value="{DynamicResource ActiveItemBrush}"/> |
||
513 | </DataTrigger> |
||
514 | </Style.Triggers> |
||
515 | </Style> |
||
516 | </Label.Style> |
||
517 | </Label> |
||
2309 | - | 518 | <Label x:Name="labelSettings" Content="Settings" HorizontalAlignment="Left" VerticalAlignment="Top" Height="22" Width="74" Padding="0" RenderTransformOrigin="0.5,0.5" Margin="-26,125,-25,0" HorizontalContentAlignment="Center" VerticalContentAlignment="Stretch" MouseDown="labelSettings_MouseDown" FontSize="14"> |
2298 | - | 519 | <Label.RenderTransform> |
520 | <TransformGroup> |
||
521 | <ScaleTransform/> |
||
522 | <SkewTransform/> |
||
523 | <RotateTransform Angle="-90"/> |
||
524 | <TranslateTransform/> |
||
525 | </TransformGroup> |
||
526 | </Label.RenderTransform> |
||
527 | <Label.Style> |
||
528 | <Style TargetType="{x:Type Label}"> |
||
529 | <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/> |
||
530 | <Style.Triggers> |
||
531 | <Trigger Property="IsMouseOver" Value="True"> |
||
532 | <Setter Property="Background" Value="{DynamicResource PressedItemBrush}"/> |
||
533 | </Trigger> |
||
534 | <DataTrigger Binding="{Binding IsVisible, ElementName=GridSettings}" Value="True"> |
||
535 | <Setter Property="Background" Value="{DynamicResource ActiveItemBrush}"/> |
||
536 | </DataTrigger> |
||
537 | </Style.Triggers> |
||
538 | </Style> |
||
539 | </Label.Style> |
||
540 | </Label> |
||
2309 | - | 541 | <Label x:Name="labelLog" Content="LOG" Padding="0" RenderTransformOrigin="0.5,0.5" Margin="-26,0,-25,27" HorizontalContentAlignment="Center" VerticalContentAlignment="Stretch" MouseDown="labelLog_MouseDown" FontSize="14" HorizontalAlignment="Left" Width="74" Height="22" VerticalAlignment="Bottom"> |
2298 | - | 542 | <Label.RenderTransform> |
543 | <TransformGroup> |
||
544 | <ScaleTransform/> |
||
545 | <SkewTransform/> |
||
546 | <RotateTransform Angle="-90"/> |
||
547 | <TranslateTransform/> |
||
548 | </TransformGroup> |
||
549 | </Label.RenderTransform> |
||
550 | <Label.Style> |
||
551 | <Style TargetType="{x:Type Label}"> |
||
552 | <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/> |
||
553 | <Style.Triggers> |
||
554 | <Trigger Property="IsMouseOver" Value="True"> |
||
555 | <Setter Property="Background" Value="{DynamicResource PressedItemBrush}"/> |
||
556 | </Trigger> |
||
557 | <DataTrigger Binding="{Binding IsVisible, ElementName=GridLog}" Value="True"> |
||
558 | <Setter Property="Background" Value="{DynamicResource ActiveItemBrush}"/> |
||
559 | </DataTrigger> |
||
560 | </Style.Triggers> |
||
561 | </Style> |
||
562 | </Label.Style> |
||
563 | </Label> |
||
2309 | - | 564 | <Label x:Name="labelWaypoints" Content="Waypoints" HorizontalAlignment="Left" VerticalAlignment="Top" Height="22" Width="74" Padding="0" RenderTransformOrigin="0.5,0.5" Margin="-26,200,-25,0" HorizontalContentAlignment="Center" VerticalContentAlignment="Stretch" MouseDown="labelWaypoints_MouseDown" FontSize="14"> |
2298 | - | 565 | <Label.RenderTransform> |
566 | <TransformGroup> |
||
567 | <ScaleTransform/> |
||
568 | <SkewTransform/> |
||
569 | <RotateTransform Angle="-90"/> |
||
570 | <TranslateTransform/> |
||
571 | </TransformGroup> |
||
572 | </Label.RenderTransform> |
||
573 | <Label.Style> |
||
574 | <Style TargetType="{x:Type Label}"> |
||
575 | <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/> |
||
576 | <Style.Triggers> |
||
577 | <Trigger Property="IsMouseOver" Value="True"> |
||
578 | <Setter Property="Background" Value="{DynamicResource PressedItemBrush}"/> |
||
579 | </Trigger> |
||
580 | <DataTrigger Binding="{Binding IsVisible, ElementName=GridWP}" Value="True"> |
||
581 | <Setter Property="Background" Value="{DynamicResource ActiveItemBrush}"/> |
||
582 | </DataTrigger> |
||
583 | </Style.Triggers> |
||
584 | </Style> |
||
585 | </Label.Style> |
||
586 | </Label> |
||
2287 | - | 587 | </Grid> |
2350 | - | 588 | <Grid x:Name="GridData" Background="#7F000000" HorizontalAlignment="Left" Width="204" Margin="23,36,0,0" Visibility="Collapsed" > |
2300 | - | 589 | <TabControl x:Name="tabControl" HorizontalAlignment="Left" Height="619" VerticalAlignment="Top" Width="200" Background="{x:Null}" Margin="2,0,0,0"> |
2298 | - | 590 | <TabItem Header="Analog"> |
591 | <Grid> |
||
592 | <TextBlock x:Name="tbVolt" HorizontalAlignment="Left" Height="23" Margin="110,42,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
2398 | - | 593 | <TextBlock x:Name="tbCur" HorizontalAlignment="Left" Height="23" Margin="110,60,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
2298 | - | 594 | <Label x:Name="label6_Copy" Content="Controller:" HorizontalAlignment="Left" Margin="8,6,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
595 | <TextBox x:Name="tbCtrl" HorizontalAlignment="Left" Height="21" Margin="111,9,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"/> |
||
2398 | - | 596 | <Label x:Name="label6_Copy3" Content="Voltage" HorizontalAlignment="Left" Margin="6,38,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
597 | <Label x:Name="label6_Copy4" Content="Current" HorizontalAlignment="Left" Margin="6,56,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
598 | <TextBlock x:Name="tbCapacity" HorizontalAlignment="Left" Height="23" Margin="110,78,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
599 | <Label x:Name="label6_Copy5" Content="Capacity" HorizontalAlignment="Left" Margin="6,74,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
600 | <TextBlock x:Name="tbFTime" HorizontalAlignment="Left" Height="23" Margin="110,99,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
601 | <TextBlock x:Name="tbRCQ" HorizontalAlignment="Left" Height="23" Margin="110,119,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
602 | <Label x:Name="label6_Copy6" Content="Flying time" HorizontalAlignment="Left" Margin="6,95,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
603 | <Label x:Name="label6_Copy7" Content="RC quality" HorizontalAlignment="Left" Margin="6,115,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
604 | <TextBlock x:Name="tbMagF" HorizontalAlignment="Left" Height="23" Margin="110,140,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
605 | <Label x:Name="label6_Copy8" Content="Mag. field" HorizontalAlignment="Left" Margin="6,136,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
606 | <TextBlock x:Name="tbSats" HorizontalAlignment="Left" Height="23" Margin="110,161,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
607 | <TextBlock x:Name="tbSpeed" HorizontalAlignment="Left" Height="23" Margin="110,181,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
608 | <Label x:Name="label6_Copy9" Content="Satellites" HorizontalAlignment="Left" Margin="6,157,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
609 | <Label x:Name="label6_Copy10" Content="Gr. speed" HorizontalAlignment="Left" Margin="6,177,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
610 | <TextBlock x:Name="tbAlt" HorizontalAlignment="Left" Height="23" Margin="110,201,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
611 | <Label x:Name="label6_Copy11" Content="Altitude" HorizontalAlignment="Left" Margin="6,197,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
612 | <TextBlock x:Name="tbHeading" HorizontalAlignment="Left" Height="23" Margin="110,221,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
613 | <Label x:Name="label6_Copy12" Content="Heading" HorizontalAlignment="Left" Margin="6,217,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
614 | <TextBlock x:Name="tbPitch" HorizontalAlignment="Left" Height="23" Margin="110,240,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
615 | <Label x:Name="label6_Copy13" Content="Pitch" HorizontalAlignment="Left" Margin="6,236,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
616 | <TextBlock x:Name="tbRoll" HorizontalAlignment="Left" Height="23" Margin="110,259,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
617 | <Label x:Name="label6_Copy14" Content="Roll" HorizontalAlignment="Left" Margin="6,255,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
618 | <TextBlock x:Name="tbHP" HorizontalAlignment="Left" Height="23" Margin="110,278,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
619 | <Label x:Name="label6_Copy15" Content="Distance HP" HorizontalAlignment="Left" Margin="6,274,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
620 | <TextBlock x:Name="tbHP1" HorizontalAlignment="Left" Height="23" Margin="110,297,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
621 | <Label x:Name="label6_Copy16" Content="(Distance ???)" HorizontalAlignment="Left" Margin="6,293,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
622 | <TextBlock x:Name="tbWP" HorizontalAlignment="Left" Height="23" Margin="110,315,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
623 | <Label x:Name="label6_Copy17" Content="Distance WP" HorizontalAlignment="Left" Margin="6,311,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
624 | <TextBlock x:Name="tbWPCount" HorizontalAlignment="Left" Height="23" Margin="110,333,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
625 | <Label x:Name="label6_Copy19" Content="WP count" HorizontalAlignment="Left" Margin="6,329,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
626 | <TextBlock x:Name="tbWPIndex" HorizontalAlignment="Left" Height="23" Margin="110,351,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
627 | <Label x:Name="label6_Copy20" Content="WP-Index" HorizontalAlignment="Left" Margin="6,347,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
2298 | - | 628 | <Label x:Name="label6" Content="CRC-Error" Margin="14,0,64,10.04" VerticalAlignment="Bottom" Background="{x:Null}" Foreground="White"/> |
629 | <TextBox x:Name="tbCrc" Height="21" Margin="78,0,35,11.04" 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}"/> |
||
630 | <Label x:Name="label6_Copy1" Content="SPI-Error" Margin="14,0,69,25.04" Background="{x:Null}" Foreground="White" Height="26" VerticalAlignment="Bottom"/> |
||
631 | <TextBox x:Name="tbSPI" Margin="78,0,35,26.04" 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"/> |
||
632 | <Label x:Name="label6_Copy2" Content="I2C-Error" Margin="14,0,68,40.04" Background="{x:Null}" Foreground="White" Height="26" VerticalAlignment="Bottom"/> |
||
633 | <TextBox x:Name="tbI2C" Margin="78,0,35,41.04" 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"/> |
||
634 | <Label x:Name="label6_Copy18" Content="NC-Error" Margin="14,0,68,56.04" Background="{x:Null}" Foreground="White" Height="26" VerticalAlignment="Bottom"/> |
||
635 | <TextBox x:Name="tbNCErr" Margin="78,0,35,57.04" 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"/> |
||
2398 | - | 636 | <TextBlock x:Name="tbNCGrSpeed" HorizontalAlignment="Left" Height="23" Margin="110,376,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
637 | <Label x:Name="label6_Copy21" Content="Gr. speed (NC)" HorizontalAlignment="Left" Margin="6,372,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
638 | <TextBlock x:Name="tbHeadingCompass" HorizontalAlignment="Left" Height="23" Margin="110,395,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
639 | <Label x:Name="label6_Copy22" Content="Heading (NC)" HorizontalAlignment="Left" Margin="6,391,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
640 | <TextBlock x:Name="tbHeadingNorth" HorizontalAlignment="Left" Height="23" Margin="110,413,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/> |
||
641 | <Label x:Name="label6_Copy23" Content="Heading north" HorizontalAlignment="Left" Margin="6,409,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/> |
||
2298 | - | 642 | |
643 | </Grid> |
||
644 | </TabItem> |
||
645 | <TabItem Header="Status"> |
||
646 | <Grid Margin="0"> |
||
647 | <Label x:Name="FC1_1" Content="Motors on" HorizontalAlignment="Left" Margin="10,12,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="16" Padding="0" Height="23" Width="158" BorderThickness="0.5,0.5,0.5,0.25" BorderBrush="White" HorizontalContentAlignment="Center"/> |
||
648 | <Label x:Name="FC1_2" Content="Airborne" HorizontalAlignment="Left" Margin="10,35,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="16" Height="23" Padding="0" Width="158" BorderThickness="0.5,0.5,0.5,0.25" BorderBrush="White" HorizontalContentAlignment="Center"/> |
||
649 | <Label x:Name="FC1_3" Content="Calibrate" HorizontalAlignment="Left" Margin="10,58,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="16" Height="23" Padding="0" Width="158" BorderThickness="0.5,0.5,0.5,0.25" BorderBrush="White" HorizontalContentAlignment="Center"/> |
||
650 | <Label x:Name="FC1_4" Content="Start" HorizontalAlignment="Left" Margin="10,81,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="16" Padding="0" Height="23" Width="158" BorderThickness="0.5,0.5,0.5,0.25" BorderBrush="White" HorizontalContentAlignment="Center"/> |
||
651 | <Label x:Name="FC1_5" Content="Emergency landing" HorizontalAlignment="Left" Margin="10,104,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="16" Height="23" Padding="0" Width="158" BorderThickness="0.5,0.5,0.5,0.25" BorderBrush="White" HorizontalContentAlignment="Center"/> |
||
652 | <Label x:Name="FC1_6" Content="Low battery" HorizontalAlignment="Left" Margin="10,127,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="16" Height="23" Padding="0" Width="158" BorderThickness="0.5,0.5,0.5,0.25" BorderBrush="White" HorizontalContentAlignment="Center"/> |
||
653 | <Label x:Name="FC2_1" Content="Carefree" HorizontalAlignment="Left" Margin="10,150,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="16" Padding="0" Height="23" Width="158" BorderThickness="0.5,0.5,0.5,0.25" BorderBrush="White" HorizontalContentAlignment="Center"/> |
||
654 | <Label x:Name="FC2_2" Content="Altitude control" HorizontalAlignment="Left" Margin="10,173,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="16" Height="23" Padding="0" Width="158" BorderThickness="0.5,0.5,0.5,0.25" BorderBrush="White" HorizontalContentAlignment="Center"/> |
||
655 | <Label x:Name="FC2_3" Content="RC failsave" HorizontalAlignment="Left" Margin="10,196,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="16" Height="23" Padding="0" Width="158" BorderThickness="0.5,0.5,0.5,0.25" BorderBrush="White" HorizontalContentAlignment="Center"/> |
||
656 | <Label x:Name="FC2_4" Content="Out 1" HorizontalAlignment="Left" Margin="10,219,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="16" Padding="0" Height="23" Width="158" BorderThickness="0.5,0.5,0.5,0.25" BorderBrush="White" HorizontalContentAlignment="Center"/> |
||
657 | <Label x:Name="FC2_5" Content="Out 2" HorizontalAlignment="Left" Margin="10,242,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="16" Height="23" Padding="0" Width="158" BorderThickness="0.5,0.5,0.5,0.25" BorderBrush="White" HorizontalContentAlignment="Center"/> |
||
658 | <Label x:Name="FC2_7" Content="Autostart" HorizontalAlignment="Left" Margin="10,288,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="16" Height="23" Padding="0" Width="158" BorderThickness="0.5,0.5,0.5,0.25" BorderBrush="White" HorizontalContentAlignment="Center"/> |
||
659 | <Label x:Name="FC2_8" Content="Autoland" HorizontalAlignment="Left" Margin="10,311,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="16" Height="23" Padding="0" Width="158" BorderThickness="0.5,0.5,0.5,0.25" BorderBrush="White" HorizontalContentAlignment="Center"/> |
||
660 | <Label x:Name="NC1_2" Content="Position hold" HorizontalAlignment="Left" Margin="10,334,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="16" Padding="0" Height="23" Width="158" BorderThickness="0.5,0.5,0.5,0.25" BorderBrush="White" HorizontalContentAlignment="Center"/> |
||
661 | <Label x:Name="NC1_3" Content="Coming home" HorizontalAlignment="Left" Margin="10,357,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="16" Height="23" Padding="0" Width="158" BorderThickness="0.5,0.5,0.5,0.25" BorderBrush="White" HorizontalContentAlignment="Center"/> |
||
662 | <Label x:Name="NC1_4" Content="Range limit" HorizontalAlignment="Left" Margin="10,380,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="16" Height="23" Padding="0" Width="158" BorderThickness="0.5,0.5,0.5,0.25" BorderBrush="White" HorizontalContentAlignment="Center"/> |
||
663 | <Label x:Name="NC1_5" Content="No serial link" HorizontalAlignment="Left" Margin="10,403,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="16" Padding="0" Height="23" Width="158" BorderThickness="0.5,0.5,0.5,0.25" BorderBrush="White" HorizontalContentAlignment="Center"/> |
||
664 | <Label x:Name="NC1_6" Content="Target reached" HorizontalAlignment="Left" Margin="10,426,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="16" Height="23" Padding="0" Width="158" BorderThickness="0.5,0.5,0.5,0.25" BorderBrush="White" HorizontalContentAlignment="Center"/> |
||
665 | <Label x:Name="NC1_7" Content="Manual control" HorizontalAlignment="Left" Margin="10,449,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="16" Height="23" Padding="0" Width="158" BorderThickness="0.5,0.5,0.5,0.25" BorderBrush="White" HorizontalContentAlignment="Center"/> |
||
666 | <Label x:Name="NC1_8" Content="GPS ok" HorizontalAlignment="Left" Margin="10,472,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="16" Height="23" Padding="0" Width="158" BorderThickness="0.5" BorderBrush="White" HorizontalContentAlignment="Center"/> |
||
667 | <Label x:Name="FC2_6" Content="Wait for takeoff" HorizontalAlignment="Left" Margin="10,265,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="16" Height="23" Padding="0" Width="158" BorderThickness="0.5,0.5,0.5,0.25" BorderBrush="White" HorizontalContentAlignment="Center"/> |
||
668 | |||
669 | </Grid> |
||
670 | </TabItem> |
||
2349 | - | 671 | <TabItem Header="Serial" HorizontalAlignment="Left" Height="20" VerticalAlignment="Top" Width="54" Margin="-1,0,0,0"> |
672 | <Grid> |
||
2350 | - | 673 | <GroupBox x:Name="groupBox3" Header="Channel 1" HorizontalAlignment="Left" Height="188" VerticalAlignment="Top" Width="194" Foreground="White" BorderThickness="0.5"> |
2349 | - | 674 | <Grid Margin="0,0,-2,0.04"> |
2350 | - | 675 | <TextBox x:Name="textBoxSerial1" HorizontalAlignment="Left" Height="21" Margin="6,3,0,0" Text="SerialChannel1 description" VerticalAlignment="Top" Width="146" Background="{x:Null}" Foreground="White" UndoLimit="0" IsUndoEnabled="False" MaxLines="1" MaxLength="24" TextChanged="textBoxSerial1_TextChanged"/> |
676 | <Label x:Name="labelSerChan1" HorizontalAlignment="Left" Margin="157,5,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="24" Content="{Binding Value, ElementName=SerChan1ScaleSlider}"> |
||
2349 | - | 677 | <Label.Style> |
678 | <Style TargetType="{x:Type Label}"> |
||
679 | <Style.Triggers> |
||
680 | <DataTrigger Binding="{Binding Value, ElementName=SerChan1ScaleSlider}"> |
||
681 | <Setter Property="Content" Value="{Binding Value, ElementName=SerChan1ScaleSlider}"/> |
||
682 | </DataTrigger> |
||
683 | </Style.Triggers> |
||
684 | </Style> |
||
685 | </Label.Style> |
||
686 | </Label> |
||
2350 | - | 687 | <Slider x:Name="SerChan1ScaleSlider" HorizontalAlignment="Left" Height="29" Margin="4,29,0,0" VerticalAlignment="Top" Width="177" Maximum="254" FontSize="20" Style="{DynamicResource TouchSliderStyle}" SmallChange="0.001" ValueChanged="SerChan1ScaleSlider_ValueChanged" IsSnapToTickEnabled="True"/> |
688 | <Button x:Name="btnSer1_0" Content="0" HorizontalAlignment="Left" Height="35" Margin="2,57,0,0" VerticalAlignment="Top" Width="58" FontSize="14" Click="btnSer1_0_Click"/> |
||
689 | <Button x:Name="btnSer1_127" Content="127" HorizontalAlignment="Left" Height="35" Margin="62,57,0,0" VerticalAlignment="Top" Width="58" FontSize="14" Click="btnSer1_127_Click"/> |
||
690 | <Button x:Name="btnSer1_254" Content="254" HorizontalAlignment="Left" Height="35" Margin="122,57,0,0" VerticalAlignment="Top" Width="58" FontSize="14" Click="btnSer1_254_Click"/> |
||
691 | <TextBox x:Name="textBoxSerial1_val1" HorizontalAlignment="Left" Height="29" Margin="2,96,0,0" TextWrapping="Wrap" Text="0" VerticalAlignment="Top" Width="58" MaxLines="1" MaxLength="3" IsUndoEnabled="False" FontSize="14" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" KeyUp="textBox_serial_KeyPress" TextChanged="textBoxSerial1_val1_TextChanged"/> |
||
692 | <TextBox x:Name="textBoxSerial1_val2" HorizontalAlignment="Left" Height="29" Margin="62,96,0,0" TextWrapping="Wrap" Text="0" VerticalAlignment="Top" Width="58" MaxLines="1" MaxLength="3" IsUndoEnabled="False" FontSize="14" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" KeyUp="textBox_serial_KeyPress" TextChanged="textBoxSerial1_val2_TextChanged"/> |
||
693 | <TextBox x:Name="textBoxSerial1_val3" HorizontalAlignment="Left" Height="29" Margin="122,96,0,0" TextWrapping="Wrap" Text="0" VerticalAlignment="Top" Width="58" MaxLines="1" MaxLength="3" IsUndoEnabled="False" FontSize="14" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" KeyUp="textBox_serial_KeyPress" TextChanged="textBoxSerial1_val3_TextChanged"/> |
||
694 | <Button x:Name="btnSer1_val1" Content="{Binding Text, ElementName=textBoxSerial1_val1}" HorizontalAlignment="Left" Height="35" Margin="2,128,0,0" VerticalAlignment="Top" Width="58" FontSize="14" Click="btnSer1_val1_Click"> |
||
2349 | - | 695 | <Button.Style> |
696 | <Style TargetType="{x:Type Button}"> |
||
697 | <Style.Triggers> |
||
698 | <DataTrigger Binding="{Binding Text,ElementName=textBoxSerial1_val1}"></DataTrigger> |
||
699 | </Style.Triggers> |
||
700 | </Style> |
||
701 | </Button.Style> |
||
702 | </Button> |
||
2350 | - | 703 | <Button x:Name="btnSer1_val2" Content="{Binding Text, ElementName=textBoxSerial1_val2}" HorizontalAlignment="Left" Height="35" Margin="62,128,0,0" VerticalAlignment="Top" Width="58" FontSize="14" Click="btnSer1_val2_Click"> |
2349 | - | 704 | <Button.Style> |
705 | <Style TargetType="{x:Type Button}"> |
||
706 | <Style.Triggers> |
||
707 | <DataTrigger Binding="{Binding Text,ElementName=textBoxSerial1_val2}"></DataTrigger> |
||
708 | </Style.Triggers> |
||
709 | </Style> |
||
710 | </Button.Style> |
||
711 | </Button> |
||
2350 | - | 712 | <Button x:Name="btnSer1_val3" Content="{Binding Text, ElementName=textBoxSerial1_val3}" HorizontalAlignment="Left" Height="35" Margin="122,128,0,0" VerticalAlignment="Top" Width="58" FontSize="14" Click="btnSer1_val3_Click"> |
2349 | - | 713 | <Button.Style> |
714 | <Style TargetType="{x:Type Button}"> |
||
715 | <Style.Triggers> |
||
716 | <DataTrigger Binding="{Binding Text,ElementName=textBoxSerial1_val3}"></DataTrigger> |
||
717 | </Style.Triggers> |
||
718 | </Style> |
||
719 | </Button.Style> |
||
720 | </Button> |
||
721 | |||
722 | </Grid> |
||
723 | </GroupBox> |
||
2350 | - | 724 | <GroupBox x:Name="groupBoxSerchan2" Header="Channel 2" HorizontalAlignment="Left" Height="193" VerticalAlignment="Top" Width="194" Foreground="White" BorderThickness="0.5" Margin="0,193,0,0"> |
2349 | - | 725 | <Grid Margin="0,0,-2,0.04"> |
2350 | - | 726 | <TextBox x:Name="textBoxSerial2" HorizontalAlignment="Left" Height="21" Margin="6,3,0,0" Text="SerialChannel2 description" VerticalAlignment="Top" Width="146" Background="{x:Null}" Foreground="White" UndoLimit="0" IsUndoEnabled="False" MaxLines="1" MaxLength="24" TextChanged="textBoxSerial2_TextChanged"/> |
727 | <Label x:Name="labelSerChan2" HorizontalAlignment="Left" Margin="157,5,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="24" Content="{Binding Value, ElementName=SerChan2ScaleSlider}"> |
||
2349 | - | 728 | <Label.Style> |
729 | <Style TargetType="{x:Type Label}"> |
||
730 | <Style.Triggers> |
||
731 | <DataTrigger Binding="{Binding Value, ElementName=SerChan2ScaleSlider}"> |
||
732 | <Setter Property="Content" Value="{Binding Value, ElementName=SerChan2ScaleSlider}"/> |
||
733 | </DataTrigger> |
||
734 | </Style.Triggers> |
||
735 | </Style> |
||
736 | </Label.Style> |
||
737 | </Label> |
||
2350 | - | 738 | <Slider x:Name="SerChan2ScaleSlider" HorizontalAlignment="Left" Height="29" Margin="4,29,0,0" VerticalAlignment="Top" Width="177" Maximum="254" FontSize="20" Style="{DynamicResource TouchSliderStyle}" SmallChange="0.001" ValueChanged="SerChan2ScaleSlider_ValueChanged" IsSnapToTickEnabled="True"/> |
739 | <Button x:Name="btnSer2_0" Content="0" HorizontalAlignment="Left" Height="35" Margin="2,57,0,0" VerticalAlignment="Top" Width="58" FontSize="14" Click="btnSer2_0_Click"/> |
||
740 | <Button x:Name="btnSer2_127" Content="127" HorizontalAlignment="Left" Height="35" Margin="62,57,0,0" VerticalAlignment="Top" Width="58" FontSize="14" Click="btnSer2_127_Click"/> |
||
741 | <Button x:Name="btnSer2_254" Content="254" HorizontalAlignment="Left" Height="35" Margin="122,57,0,0" VerticalAlignment="Top" Width="58" FontSize="14" Click="btnSer2_254_Click"/> |
||
742 | <TextBox x:Name="textBoxSerial2_val1" HorizontalAlignment="Left" Height="29" Margin="2,96,0,0" TextWrapping="Wrap" Text="0" VerticalAlignment="Top" Width="58" MaxLines="1" MaxLength="3" IsUndoEnabled="False" FontSize="14" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" KeyUp="textBox_serial_KeyPress" TextChanged="textBoxSerial2_val1_TextChanged"/> |
||
743 | <TextBox x:Name="textBoxSerial2_val2" HorizontalAlignment="Left" Height="29" Margin="62,96,0,0" TextWrapping="Wrap" Text="0" VerticalAlignment="Top" Width="58" MaxLines="1" MaxLength="3" IsUndoEnabled="False" FontSize="14" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" KeyUp="textBox_serial_KeyPress" TextChanged="textBoxSerial2_val2_TextChanged"/> |
||
744 | <TextBox x:Name="textBoxSerial2_val3" HorizontalAlignment="Left" Height="29" Margin="122,96,0,0" TextWrapping="Wrap" Text="0" VerticalAlignment="Top" Width="58" MaxLines="1" MaxLength="3" IsUndoEnabled="False" FontSize="14" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" KeyUp="textBox_serial_KeyPress" TextChanged="textBoxSerial2_val3_TextChanged"/> |
||
745 | <Button x:Name="btnSer2_val1" Content="{Binding Text, ElementName=textBoxSerial2_val1}" HorizontalAlignment="Left" Height="35" Margin="2,128,0,0" VerticalAlignment="Top" Width="58" FontSize="14" Click="btnSer2_val1_Click"> |
||
2349 | - | 746 | <Button.Style> |
747 | <Style TargetType="{x:Type Button}"> |
||
748 | <Style.Triggers> |
||
749 | <DataTrigger Binding="{Binding Text,ElementName=textBoxSerial1_val1}"></DataTrigger> |
||
750 | </Style.Triggers> |
||
751 | </Style> |
||
752 | </Button.Style> |
||
753 | </Button> |
||
2350 | - | 754 | <Button x:Name="btnSer2_val2" Content="{Binding Text, ElementName=textBoxSerial2_val2}" HorizontalAlignment="Left" Height="35" Margin="62,128,0,0" VerticalAlignment="Top" Width="58" FontSize="14" Click="btnSer2_val2_Click"> |
2349 | - | 755 | <Button.Style> |
756 | <Style TargetType="{x:Type Button}"> |
||
757 | <Style.Triggers> |
||
758 | <DataTrigger Binding="{Binding Text,ElementName=textBoxSerial2_val2}"></DataTrigger> |
||
759 | </Style.Triggers> |
||
760 | </Style> |
||
761 | </Button.Style> |
||
762 | </Button> |
||
2350 | - | 763 | <Button x:Name="btnSer2_val3" Content="{Binding Text, ElementName=textBoxSerial2_val3}" HorizontalAlignment="Left" Height="35" Margin="122,128,0,0" VerticalAlignment="Top" Width="58" FontSize="14" Click="btnSer2_val3_Click"> |
2349 | - | 764 | <Button.Style> |
765 | <Style TargetType="{x:Type Button}"> |
||
766 | <Style.Triggers> |
||
767 | <DataTrigger Binding="{Binding Text,ElementName=textBoxSerial2_val3}"></DataTrigger> |
||
768 | </Style.Triggers> |
||
769 | </Style> |
||
770 | </Button.Style> |
||
771 | </Button> |
||
772 | |||
773 | </Grid> |
||
774 | </GroupBox> |
||
2350 | - | 775 | <GroupBox x:Name="groupBoxSerchan3" Header="Channel 3" HorizontalAlignment="Left" Height="193" VerticalAlignment="Top" Width="194" Foreground="White" BorderThickness="0.5" Margin="0,391,0,0"> |
776 | <Grid Margin="0,0,-2,-12.96"> |
||
777 | <TextBox x:Name="textBoxSerial3" HorizontalAlignment="Left" Height="21" Margin="6,3,0,0" Text="SerialChannel3 description" VerticalAlignment="Top" Width="146" Background="{x:Null}" Foreground="White" UndoLimit="0" IsUndoEnabled="False" MaxLines="1" MaxLength="24" TextChanged="textBoxSerial3_TextChanged"/> |
||
778 | <Label x:Name="labelSerChan3" HorizontalAlignment="Left" Margin="157,5,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="24" Content="{Binding Value, ElementName=SerChan3ScaleSlider}"> |
||
779 | <Label.Style> |
||
780 | <Style TargetType="{x:Type Label}"> |
||
781 | <Style.Triggers> |
||
782 | <DataTrigger Binding="{Binding Value, ElementName=SerChan3ScaleSlider}"> |
||
783 | <Setter Property="Content" Value="{Binding Value, ElementName=SerChan3ScaleSlider}"/> |
||
784 | </DataTrigger> |
||
785 | </Style.Triggers> |
||
786 | </Style> |
||
787 | </Label.Style> |
||
788 | </Label> |
||
789 | <Slider x:Name="SerChan3ScaleSlider" HorizontalAlignment="Left" Height="29" Margin="4,29,0,0" VerticalAlignment="Top" Width="177" Maximum="254" FontSize="20" Style="{DynamicResource TouchSliderStyle}" SmallChange="1" ValueChanged="SerChan3ScaleSlider_ValueChanged" IsSnapToTickEnabled="True"/> |
||
790 | <Button x:Name="btnSer3_0" Content="0" HorizontalAlignment="Left" Height="35" Margin="2,57,0,0" VerticalAlignment="Top" Width="58" FontSize="14" Click="btnSer3_0_Click"/> |
||
791 | <Button x:Name="btnSer3_127" Content="127" HorizontalAlignment="Left" Height="35" Margin="62,57,0,0" VerticalAlignment="Top" Width="58" FontSize="14" Click="btnSer3_127_Click"/> |
||
792 | <Button x:Name="btnSer3_254" Content="254" HorizontalAlignment="Left" Height="35" Margin="122,57,0,0" VerticalAlignment="Top" Width="58" FontSize="14" Click="btnSer3_254_Click"/> |
||
793 | <TextBox x:Name="textBoxSerial3_val1" HorizontalAlignment="Left" Height="29" Margin="2,96,0,0" TextWrapping="Wrap" Text="0" VerticalAlignment="Top" Width="58" MaxLines="1" MaxLength="3" IsUndoEnabled="False" FontSize="14" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" KeyUp="textBox_serial_KeyPress" TextChanged="textBoxSerial3_val1_TextChanged"/> |
||
794 | <TextBox x:Name="textBoxSerial3_val2" HorizontalAlignment="Left" Height="29" Margin="62,96,0,0" TextWrapping="Wrap" Text="0" VerticalAlignment="Top" Width="58" MaxLines="1" MaxLength="3" IsUndoEnabled="False" FontSize="14" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" KeyUp="textBox_serial_KeyPress" TextChanged="textBoxSerial3_val2_TextChanged"/> |
||
795 | <TextBox x:Name="textBoxSerial3_val3" HorizontalAlignment="Left" Height="29" Margin="122,96,0,0" TextWrapping="Wrap" Text="0" VerticalAlignment="Top" Width="58" MaxLines="1" MaxLength="3" IsUndoEnabled="False" FontSize="14" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" KeyUp="textBox_serial_KeyPress" TextChanged="textBoxSerial3_val3_TextChanged"/> |
||
796 | <Button x:Name="btnSer3_val1" Content="{Binding Text, ElementName=textBoxSerial2_val1}" HorizontalAlignment="Left" Height="35" Margin="2,128,0,0" VerticalAlignment="Top" Width="58" FontSize="14" Click="btnSer3_val1_Click"> |
||
797 | <Button.Style> |
||
798 | <Style TargetType="{x:Type Button}"> |
||
799 | <Style.Triggers> |
||
800 | <DataTrigger Binding="{Binding Text, ElementName=textBoxSerial3_val1}"/> |
||
801 | </Style.Triggers> |
||
802 | </Style> |
||
803 | </Button.Style> |
||
804 | </Button> |
||
805 | <Button x:Name="btnSer3_val2" Content="{Binding Text, ElementName=textBoxSerial3_val2}" HorizontalAlignment="Left" Height="35" Margin="62,128,0,0" VerticalAlignment="Top" Width="58" FontSize="14" Click="btnSer3_val2_Click"> |
||
806 | <Button.Style> |
||
807 | <Style TargetType="{x:Type Button}"> |
||
808 | <Style.Triggers> |
||
809 | <DataTrigger Binding="{Binding Text, ElementName=textBoxSerial3_val2}"/> |
||
810 | </Style.Triggers> |
||
811 | </Style> |
||
812 | </Button.Style> |
||
813 | </Button> |
||
814 | <Button x:Name="btnSer3_val3" Content="{Binding Text, ElementName=textBoxSerial3_val3}" HorizontalAlignment="Left" Height="35" Margin="122,128,0,0" VerticalAlignment="Top" Width="58" FontSize="14" Click="btnSer3_val3_Click"> |
||
815 | <Button.Style> |
||
816 | <Style TargetType="{x:Type Button}"> |
||
817 | <Style.Triggers> |
||
818 | <DataTrigger Binding="{Binding Text, ElementName=textBoxSerial3_val3}"/> |
||
819 | </Style.Triggers> |
||
820 | </Style> |
||
821 | </Button.Style> |
||
822 | </Button> |
||
2349 | - | 823 | |
2350 | - | 824 | </Grid> |
825 | </GroupBox> |
||
2349 | - | 826 | |
2350 | - | 827 | |
2349 | - | 828 | </Grid> |
829 | </TabItem> |
||
2298 | - | 830 | </TabControl> |
2287 | - | 831 | </Grid> |
2392 | - | 832 | <Grid x:Name="GridSettings" Background="#7B000000" HorizontalAlignment="Left" Width="233" Margin="23,36,0,0"> |
2354 | - | 833 | <TabControl x:Name="tabControlSettings" HorizontalAlignment="Left" Width="229" Background="{x:Null}" Margin="4,0,0,0"> |
834 | <TabItem Header="General" Margin="0,0,5.849,0"> |
||
2287 | - | 835 | <Grid x:Name="TabGridGeneral"> |
2300 | - | 836 | <local:SerialPortCtrl x:Name="serialPortCtrl" HorizontalAlignment="Left" Height="256" Margin="11,5,0,0" VerticalAlignment="Top" Width="210"/> |
2287 | - | 837 | <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"> |
838 | <Grid Margin="0,0,-12,-6"> |
||
839 | <Label x:Name="label" Content="debug values" HorizontalAlignment="Left" Margin="4,13,0,0" VerticalAlignment="Top" Foreground="White" Padding="0"/> |
||
840 | <Label x:Name="label_Copy" Content="Nav-Ctrl values" HorizontalAlignment="Left" Margin="4,36,0,0" VerticalAlignment="Top" Foreground="White" Padding="0"/> |
||
841 | <Label x:Name="label_Copy1" Content="BL-Ctrl values" HorizontalAlignment="Left" Margin="4,59,0,0" VerticalAlignment="Top" Foreground="White" Padding="0"/> |
||
842 | <Label x:Name="label_Copy2" Content="OSD values" HorizontalAlignment="Left" Margin="4,82,0,0" VerticalAlignment="Top" Foreground="White" Padding="0"/> |
||
843 | <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"/> |
||
844 | <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"/> |
||
845 | <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"/> |
||
846 | <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"/> |
||
847 | <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"/> |
||
848 | <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"/> |
||
849 | <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"/> |
||
850 | <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"/> |
||
851 | <Label x:Name="label_Copy3" Content="LiPo Cells" HorizontalAlignment="Left" Margin="-6,121,0,-29.62" VerticalAlignment="Top" Foreground="White" Padding="0" Width="63"/> |
||
852 | <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"/> |
||
853 | <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"/> |
||
854 | <Label x:Name="label_Copy5" Content="Motors" HorizontalAlignment="Left" Margin="111,122,0,-30.62" VerticalAlignment="Top" Foreground="White" Padding="0" Width="51"/> |
||
855 | <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"/> |
||
856 | </Grid> |
||
857 | </GroupBox> |
||
858 | <TextBox x:Name="tbSettingsCapa" HorizontalAlignment="Left" Height="21" Margin="74,457,0,0" TextWrapping="Wrap" Text="5000" VerticalAlignment="Top" Width="36" Visibility="Hidden"/> |
||
2372 | - | 859 | <Button x:Name="buttonSwitchNC" Content="switch to NC" HorizontalAlignment="Left" Height="49" Margin="48,447,0,0" VerticalAlignment="Top" Width="112" Click="buttonSwitchNC_Click" Style="{StaticResource HideSwitchNCButton}" Tag="{Binding ElementName=tbCtrl}" FontSize="16" Visibility="Hidden" Background="#FFF7ACAC" BorderBrush="Red"/> |
2287 | - | 860 | </Grid> |
861 | </TabItem> |
||
2354 | - | 862 | <TabItem Header="Style" Margin="-6.849,0,-2.022,0"> |
2287 | - | 863 | <Grid x:Name="TabGridStyle"> |
864 | <Label x:Name="label_Copy6" Content="Main window scale" HorizontalAlignment="Left" Margin="9,7,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="122"/> |
||
865 | <Label x:Name="labelUIScale" HorizontalAlignment="Left" Margin="117,7,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="42" Content="{Binding Value, ElementName=UIScaleSlider}"> |
||
866 | <Label.Style> |
||
867 | <Style TargetType="{x:Type Label}"> |
||
868 | <Style.Triggers> |
||
869 | <DataTrigger Binding="{Binding Value, ElementName=UIScaleSlider}"> |
||
870 | <Setter Property="Content" Value="{Binding Value, ElementName=UIScaleSlider}"/> |
||
871 | </DataTrigger> |
||
872 | </Style.Triggers> |
||
873 | </Style> |
||
874 | </Label.Style> |
||
875 | </Label> |
||
2295 | - | 876 | <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}" LargeChange="0.01" SmallChange="0.001"/> |
877 | <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" LargeChange="0.01" SmallChange="0.001"/> |
||
2287 | - | 878 | <Label x:Name="label_Copy8" Content="Top bar scale" HorizontalAlignment="Left" Margin="14,57,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="95"/> |
879 | <Label x:Name="labelTopBarScale" HorizontalAlignment="Left" Margin="95,57,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="42" Content="{Binding Value, ElementName=UIScaleTopSlider}"> |
||
880 | <Label.Style> |
||
881 | <Style TargetType="{x:Type Label}"> |
||
882 | <Style.Triggers> |
||
883 | <DataTrigger Binding="{Binding Value, ElementName=UIScaleTopSlider}"> |
||
884 | <Setter Property="Content" Value="{Binding Value, ElementName=UIScaleTopSlider}"/> |
||
885 | </DataTrigger> |
||
886 | </Style.Triggers> |
||
887 | </Style> |
||
888 | </Label.Style> |
||
889 | </Label> |
||
2295 | - | 890 | <Slider x:Name="UIScaleMotorsSlider" HorizontalAlignment="Left" Height="16" Margin="9,112,0,0" VerticalAlignment="Top" Width="207" Value="1" Maximum="2" Minimum="0.5" LargeChange="0.01" SmallChange="0.001"/> |
2287 | - | 891 | <Label x:Name="label_Copy9" Content="Motors scale" HorizontalAlignment="Left" Margin="14,95,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="95"/> |
892 | <Label x:Name="labelMotorsScale" HorizontalAlignment="Left" Margin="95,95,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="42" Content="{Binding Value, ElementName=UIScaleMotorsSlider}"> |
||
893 | <Label.Style> |
||
894 | <Style TargetType="{x:Type Label}"> |
||
895 | <Style.Triggers> |
||
896 | <DataTrigger Binding="{Binding Value, ElementName=UIScaleMotorsSlider}"> |
||
897 | <Setter Property="Content" Value="{Binding Value, ElementName=UIScaleMotorsSlider}"/> |
||
898 | </DataTrigger> |
||
899 | </Style.Triggers> |
||
900 | </Style> |
||
901 | </Label.Style> |
||
902 | </Label> |
||
2295 | - | 903 | <Slider x:Name="UIScaleOSDSlider" HorizontalAlignment="Left" Height="16" Margin="9,148,0,0" VerticalAlignment="Top" Width="207" Value="1" Maximum="2" Minimum="0.5" LargeChange="0.01" SmallChange="0.001"/> |
2287 | - | 904 | <Label x:Name="label_Copy10" Content="OSD scale" HorizontalAlignment="Left" Margin="14,131,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="95"/> |
905 | <Label x:Name="labelOSDScale" HorizontalAlignment="Left" Margin="95,131,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="42" Content="{Binding Value, ElementName=UIScaleOSDSlider}"> |
||
906 | <Label.Style> |
||
907 | <Style TargetType="{x:Type Label}"> |
||
908 | <Style.Triggers> |
||
909 | <DataTrigger Binding="{Binding Value, ElementName=UIScaleOSDSlider}"> |
||
910 | <Setter Property="Content" Value="{Binding Value, ElementName=UIScaleOSDSlider}"/> |
||
911 | </DataTrigger> |
||
912 | </Style.Triggers> |
||
913 | </Style> |
||
914 | </Label.Style> |
||
915 | </Label> |
||
2295 | - | 916 | <Slider x:Name="UIScaleLOGSlider" HorizontalAlignment="Left" Height="16" Margin="9,184,0,0" VerticalAlignment="Top" Width="207" Value="1" Maximum="2" Minimum="0.5" LargeChange="0.01" SmallChange="0.001"/> |
2287 | - | 917 | <Label x:Name="label_Copy11" Content="LOG scale" HorizontalAlignment="Left" Margin="14,167,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="95"/> |
918 | <Label x:Name="labelLOGScale" HorizontalAlignment="Left" Margin="95,167,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="42" Content="{Binding Value, ElementName=UIScaleLOGSlider}"> |
||
919 | <Label.Style> |
||
920 | <Style TargetType="{x:Type Label}"> |
||
921 | <Style.Triggers> |
||
922 | <DataTrigger Binding="{Binding Value, ElementName=UIScaleLOGSlider}"> |
||
923 | <Setter Property="Content" Value="{Binding Value, ElementName=UIScaleLOGSlider}"/> |
||
924 | </DataTrigger> |
||
925 | </Style.Triggers> |
||
926 | </Style> |
||
927 | </Label.Style> |
||
928 | </Label> |
||
2295 | - | 929 | <Slider x:Name="UIScaleHorizonSlider" HorizontalAlignment="Left" Height="16" Margin="9,220,0,0" VerticalAlignment="Top" Width="207" Value="1" Maximum="2" Minimum="0.5" LargeChange="0.01" SmallChange="0.001"/> |
2287 | - | 930 | <Label x:Name="label_Copy12" Content="Horizon scale" HorizontalAlignment="Left" Margin="14,203,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="95"/> |
931 | <Label x:Name="labelHorizonScale" HorizontalAlignment="Left" Margin="95,203,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="42" Content="{Binding Value, ElementName=UIScaleHorizonSlider}"> |
||
932 | <Label.Style> |
||
933 | <Style TargetType="{x:Type Label}"> |
||
934 | <Style.Triggers> |
||
935 | <DataTrigger Binding="{Binding Value, ElementName=UIScaleHorizonSlider}"> |
||
936 | <Setter Property="Content" Value="{Binding Value, ElementName=UIScaleHorizonSlider}"/> |
||
937 | </DataTrigger> |
||
938 | </Style.Triggers> |
||
939 | </Style> |
||
940 | </Label.Style> |
||
941 | </Label> |
||
2354 | - | 942 | <Button x:Name="buttonUIScaleReset" Content="Reset" HorizontalAlignment="Left" Margin="14,248,0,0" VerticalAlignment="Top" Width="95" Click="buttonUIScaleReset_Click" Height="29"/> |
2372 | - | 943 | <GroupBox x:Name="groupBox1" Header="Topbar items" Margin="14,323,10,0" Foreground="White" BorderThickness="0.5" Height="197" VerticalAlignment="Top"> |
2287 | - | 944 | <Grid Margin="0,0,0,0"> |
945 | <CheckBox x:Name="chkBoxTopBarShowVoltage" Content="Voltage" Foreground="White" Margin="10,10,106,0" IsChecked="True" Height="18" VerticalAlignment="Top" /> |
||
946 | <CheckBox x:Name="chkBoxTopBarShowCapacity" Content="Capacity" Foreground="White" Margin="10,26,106,0" IsChecked="True" Height="18" VerticalAlignment="Top" /> |
||
947 | <CheckBox x:Name="chkBoxTopBarShowCurrent" Content="Current" Foreground="White" Margin="10,42,106,0" IsChecked="True" Height="18" VerticalAlignment="Top" /> |
||
948 | <CheckBox x:Name="chkBoxTopBarShowFlightTime" Content="FlightTime" Foreground="White" Margin="10,58,82,0" IsChecked="True" Height="18" VerticalAlignment="Top" /> |
||
949 | <CheckBox x:Name="chkBoxTopBarShowDistanceHP" Content="Distance Home" Foreground="White" Margin="10,75,70,0" IsChecked="True" Height="18" VerticalAlignment="Top" /> |
||
950 | <CheckBox x:Name="chkBoxTopBarShowHeight" Content="Height" Foreground="White" Margin="10,92,70,0" IsChecked="True" Height="18" VerticalAlignment="Top" /> |
||
951 | <CheckBox x:Name="chkBoxTopBarShowSpeed" Content="GroundSpeed" Foreground="White" Margin="10,108,70,0" IsChecked="True" Height="18" VerticalAlignment="Top" /> |
||
952 | <CheckBox x:Name="chkBoxTopBarShowMF" Content="Magnetic field" Foreground="White" Margin="10,124,70,-2" IsChecked="True" Height="18" VerticalAlignment="Top" /> |
||
953 | <CheckBox x:Name="chkBoxTopBarShowSatellites" Content="Satellites" Foreground="White" Margin="10,141,70,0" IsChecked="True" Height="18" VerticalAlignment="Top" /> |
||
954 | <CheckBox x:Name="chkBoxTopBarShowRC" Content="RC quality" Foreground="White" Margin="10,157,70,0" IsChecked="True" Height="18" VerticalAlignment="Top" /> |
||
955 | </Grid> |
||
956 | </GroupBox> |
||
2372 | - | 957 | <CheckBox x:Name="chkBoxShowHorizon" Content="Show Horizon/Heading" Foreground="White" Margin="14,529,64,0" IsChecked="True" Height="18" VerticalAlignment="Top" /> |
2354 | - | 958 | <CheckBox x:Name="chkBoxSaveFullScreenState" Content="save fullscreen
scalings" Foreground="White" Margin="119,285,0,0" IsChecked="True" Height="33" VerticalAlignment="Top" VerticalContentAlignment="Center" Click="chkBoxSaveFullScreenState_Click" /> |
959 | <CheckBox x:Name="chkBoxSaveNormalState" Content="save normal
window scalings" Foreground="White" Margin="6,285,106,0" IsChecked="True" Height="33" VerticalAlignment="Top" VerticalContentAlignment="Center" Click="chkBoxSaveNormalState_Click" /> |
||
2287 | - | 960 | </Grid> |
961 | </TabItem> |
||
2354 | - | 962 | <TabItem Header="Map" Height="20" VerticalAlignment="Top" Margin="1.022,0,-4,0"> |
2287 | - | 963 | <Grid x:Name="GridMapData" Margin="0,0,-3,-1" HorizontalAlignment="Left" Width="226"> |
2366 | - | 964 | <CheckBox x:Name="checkBoxFollowCopter" Content="follow copter" HorizontalAlignment="Left" Margin="8,480,0,0" Width="107" RenderTransformOrigin="0.783,27.263" Foreground="White" Click="checkBoxFollowCopter_Click" FontSize="14" VerticalContentAlignment="Center" Height="20" VerticalAlignment="Top" ToolTip="the map follows the copter - the copter is always centered"/> |
965 | <CheckBox x:Name="checkBoxAutoSetHP" Content="auto set HP" HorizontalAlignment="Left" Margin="92,402,0,0" Width="107" RenderTransformOrigin="0.783,27.263" Foreground="White" FontSize="14" VerticalContentAlignment="Center" Height="20" VerticalAlignment="Top" ToolTip="set HP automatically with first satfix" Click="checkBoxAutoSetHP_Click"/> |
||
2287 | - | 966 | <TextBox Margin="6,24,10,0" x:Name="textBoxGeo" KeyUp="textBoxGeo_KeyUp" Foreground="Black" Height="22" VerticalAlignment="Top" VerticalContentAlignment="Center" Text="Landshut"/> |
967 | <Button x:Name="buttonGeoCoding" Content="Go To!" HorizontalAlignment="Left" Margin="6,47,0,0" VerticalAlignment="Top" Width="144" Height="26" Click="buttonGeoCoding_Click"/> |
||
2366 | - | 968 | <Button Height="27" Margin="0,127,10,0" x:Name="buttonReloadMap" VerticalAlignment="Top" Click="ReloadMap_Click" HorizontalAlignment="Right" Width="71" Content="Reload"/> |
969 | <TextBox Margin="6,78,36,0" x:Name="textBoxLat" Height="23" VerticalAlignment="Top" VerticalContentAlignment="Center" /> |
||
970 | <TextBox Margin="6,102,36,0" x:Name="textBoxLng" Height="22" VerticalAlignment="Top" VerticalContentAlignment="Center" /> |
||
971 | <Button Height="27" HorizontalAlignment="Left" Margin="6,127,0,0" x:Name="buttonGeoLoc" VerticalAlignment="Top" Width="63" Click="buttonGeoLoc_Click" Content="Go To!"/> |
||
972 | <Label Height="23" HorizontalAlignment="Right" Margin="0,78,4,0" x:Name="label2" VerticalAlignment="Top" Width="27" VerticalContentAlignment="Center" Foreground="White" Content="lat"/> |
||
973 | <Label Height="29" HorizontalAlignment="Right" Margin="0,99,4,0" x:Name="label3" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="27" Foreground="White" Content="lng"/> |
||
2287 | - | 974 | |
975 | |||
2366 | - | 976 | <ComboBox FontSize="12" Margin="6,174,10,0" x:Name="comboBoxMapType" Height="25" VerticalAlignment="Top" SelectedItem="{Binding MapProvider, ElementName=MainMap}"/> |
977 | <Label HorizontalAlignment="Right" Margin="0,151,110,0" x:Name="label1" Width="109" Height="28" VerticalAlignment="Top" Foreground="White" Content="Map provider"/> |
||
978 | <ComboBox FontSize="12" Height="25" Margin="6,218,10,0" x:Name="comboBoxMode" VerticalAlignment="Top" DropDownClosed="comboBoxMode_DropDownClosed" /> |
||
979 | <Label Height="32" HorizontalAlignment="Right" Margin="0,194,128,0" x:Name="label5" VerticalAlignment="Top" Width="91" Foreground="White" Content="Caching Mode"/> |
||
980 | <Button x:Name="buttonPrefetch" Content="Prefetch cache" HorizontalAlignment="Left" Margin="6,245,0,0" VerticalAlignment="Top" Width="144" Height="26" Click="buttonPrefetch_Click"/> |
||
2287 | - | 981 | <Label HorizontalAlignment="Right" Margin="0,0,99,0" x:Name="label1_Copy" Width="120" Height="29" VerticalAlignment="Top" Foreground="White" Content="Geocoding location"/> |
2366 | - | 982 | <TextBox Margin="6,349,36,0" x:Name="textBoxLat_currentPos" VerticalContentAlignment="Center" Height="23" VerticalAlignment="Top" /> |
983 | <TextBox Margin="6,373,36,0" x:Name="textBoxLng_currentPos" VerticalContentAlignment="Center" Height="22" VerticalAlignment="Top" /> |
||
984 | <Label Height="23" HorizontalAlignment="Right" Margin="0,349,4,0" x:Name="label2_Copy" VerticalAlignment="Top" Width="27" VerticalContentAlignment="Center" Foreground="White" Content="lat"/> |
||
985 | <Label Height="29" HorizontalAlignment="Right" Margin="0,370,4,0" x:Name="label3_Copy" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="27" Foreground="White" Content="lng"/> |
||
986 | <Label HorizontalAlignment="Right" Margin="0,325,111,0" x:Name="label1_Copy1" Width="109" Foreground="White" Content="Current position" Height="28" VerticalAlignment="Top"/> |
||
987 | <Slider x:Name="sliderMapZoom" Style="{DynamicResource TouchSliderStyle}" HorizontalAlignment="Left" Margin="10,303,0,0" Width="206" Maximum="24" SmallChange="1" Value="0" IsSnapToTickEnabled="True" ValueChanged="sliderMapZoom_ValueChanged" Height="29" VerticalAlignment="Top"/> |
||
988 | <Label Height="23" HorizontalAlignment="Right" Margin="0,275,139,0" x:Name="label2_Copy1" VerticalAlignment="Top" Width="69" VerticalContentAlignment="Center" Foreground="White" Content="Zoomlevel"/> |
||
989 | <Label Height="23" HorizontalAlignment="Right" Margin="0,275,101,0" x:Name="labelZoom" VerticalAlignment="Top" Width="49" VerticalContentAlignment="Center" Foreground="White" Content="{Binding Value,ElementName=sliderMapZoom}" HorizontalContentAlignment="Center"/> |
||
990 | <Button x:Name="btnSetHP" Content="set Home" Margin="7,400,139,0" Click="btnSetHP_Click" Height="24" VerticalAlignment="Top"/> |
||
991 | <Button x:Name="btnClearHP" Content="clear Home" Margin="7,424,139,0" Click="btnClearHP_Click" Height="25" VerticalAlignment="Top" RenderTransformOrigin="0.5,0.6"/> |
||
992 | <Button x:Name="btnGotoHP" Content="goto Home" Margin="92,424,54,0" Click="btnGotoHP_Click" Height="25" VerticalAlignment="Top"/> |
||
993 | <CheckBox x:Name="checkBoxGPXLog" Content="GPX-Log" HorizontalAlignment="Left" Margin="8,457,0,0" Width="107" RenderTransformOrigin="0.783,27.263" Foreground="White" FontSize="14" VerticalContentAlignment="Center" Height="20" VerticalAlignment="Top" ToolTip="the map follows the copter - the copter is always centered" Click="checkBoxGPXLog_Click"/> |
||
994 | <Rectangle HorizontalAlignment="Left" Width="72" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="128,454,0,0" Height="39" VerticalAlignment="Top"> |
||
2324 | - | 995 | <Rectangle.Style> |
996 | <Style TargetType="{x:Type Rectangle}"> |
||
997 | <Style.Triggers> |
||
998 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnLoadGPXLog}" Value="True"> |
||
999 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
||
1000 | </DataTrigger> |
||
1001 | </Style.Triggers> |
||
1002 | </Style> |
||
1003 | </Rectangle.Style> |
||
1004 | </Rectangle> |
||
2366 | - | 1005 | <Button x:Name="btnLoadGPXLog" Content="" HorizontalAlignment="Left" Margin="131,455,0,0" Width="67" ToolTip="load GPX-log from file" BorderBrush="#FFBDBDBD" HorizontalContentAlignment="Center" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnLoadGPXLog_Click" Height="36" VerticalAlignment="Top"> |
2324 | - | 1006 | <Button.Background> |
1007 | <ImageBrush ImageSource="Images/LoadFile.png" Stretch="Uniform"/> |
||
1008 | </Button.Background> |
||
1009 | </Button> |
||
2366 | - | 1010 | <Label x:Name="label4_Copy8" Content="load GPX-Log" HorizontalAlignment="Left" Margin="122,488,0,0" VerticalAlignment="Top" Width="86" Foreground="White"/> |
1011 | <Button x:Name="btnClearRoute" Content="clear route" Margin="127,511,19,0" Height="38" VerticalAlignment="Top" RenderTransformOrigin="0.5,0.6" Click="btnClearRoute_Click"/> |
||
2287 | - | 1012 | </Grid> |
1013 | </TabItem> |
||
2354 | - | 1014 | <TabItem Header="Thresholds" Height="20" VerticalAlignment="Top" Margin="0" HorizontalAlignment="Left" Width="70"> |
2287 | - | 1015 | <Grid> |
2291 | - | 1016 | <GroupBox x:Name="groupBox2" Header="Voltage" HorizontalAlignment="Left" Height="109" Margin="10,5,0,0" VerticalAlignment="Top" Width="203" BorderThickness="0.5" Foreground="White"> |
1017 | <Grid Margin="0,0,-6,-3.96"> |
||
1018 | <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"/> |
||
1019 | <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 | - | 1020 | <Label.Style> |
1021 | <Style TargetType="{x:Type Label}"> |
||
1022 | <Style.Triggers> |
||
1023 | <DataTrigger Binding="{Binding Value, ElementName=sliderThresholdVoltageCrit}"> |
||
1024 | <Setter Property="Content" Value="{Binding Value, ElementName=sliderThresholdVoltageCrit}"/> |
||
1025 | </DataTrigger> |
||
1026 | </Style.Triggers> |
||
1027 | </Style> |
||
1028 | </Label.Style> |
||
1029 | </Label> |
||
2291 | - | 1030 | <Label x:Name="labelThresholdVoltageCrit_Copy" Content="critical" HorizontalAlignment="Left" Margin="8,41,0,0" VerticalAlignment="Top" Foreground="White"/> |
1031 | <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 | - | 1032 | |
1033 | </Slider> |
||
2291 | - | 1034 | <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 | - | 1035 | <Label.Style> |
1036 | <Style TargetType="{x:Type Label}"> |
||
1037 | <Style.Triggers> |
||
1038 | <DataTrigger Binding="{Binding Value, ElementName=sliderThresholdVoltageWarn}"> |
||
1039 | <Setter Property="Content" Value="{Binding Value, ElementName=sliderThresholdVoltageWarn}"/> |
||
1040 | </DataTrigger> |
||
1041 | </Style.Triggers> |
||
1042 | </Style> |
||
1043 | </Label.Style> |
||
1044 | </Label> |
||
2291 | - | 1045 | <Label x:Name="labelThresholdVoltageCrit_Copy2" Content="warning" HorizontalAlignment="Left" Margin="8,-2,0,0" VerticalAlignment="Top" Foreground="White"/> |
2287 | - | 1046 | |
1047 | </Grid> |
||
1048 | </GroupBox> |
||
2291 | - | 1049 | <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"> |
1050 | <Grid Margin="0,0,-6,-3.96"> |
||
1051 | <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"/> |
||
1052 | <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"/> |
||
1053 | <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"/> |
||
1054 | <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"/> |
||
1055 | <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"/> |
||
1056 | </Grid> |
||
1057 | </GroupBox> |
||
1058 | <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"> |
||
1059 | <Grid Margin="0,0,-6,-3.96"> |
||
1060 | <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"/> |
||
1061 | <Label x:Name="labelThresholdDistanceWarn" HorizontalAlignment="Left" Margin="86,3,0,0" VerticalAlignment="Top" Foreground="White" Height="25" Width="45" Content="{Binding Value, ElementName=sliderThresholdDistanceWarn}"> |
||
1062 | <Label.Style> |
||
1063 | <Style TargetType="{x:Type Label}"> |
||
1064 | <Style.Triggers> |
||
1065 | <DataTrigger Binding="{Binding Value, ElementName=sliderThresholdDistanceWarn}"> |
||
1066 | <Setter Property="Content" Value="{Binding Value, ElementName=sliderThresholdDistanceWarn}"/> |
||
1067 | </DataTrigger> |
||
1068 | </Style.Triggers> |
||
1069 | </Style> |
||
1070 | </Label.Style> |
||
1071 | </Label> |
||
1072 | |||
1073 | </Grid> |
||
1074 | </GroupBox> |
||
2287 | - | 1075 | </Grid> |
1076 | </TabItem> |
||
2372 | - | 1077 | <TabItem Header="Map elements style" HorizontalAlignment="Left" Height="20" VerticalAlignment="Top" Width="118" Margin="-19,0,0,0"> |
2354 | - | 1078 | <Grid> |
2372 | - | 1079 | <Border Margin="0,10,0,0" BorderBrush="White" BorderThickness="0.5" CornerRadius="5" HorizontalAlignment="Right" Width="222" Height="263" VerticalAlignment="Top"> |
2354 | - | 1080 | <Grid Margin="-0.5,-0.5,-0.5,1.5"> |
1081 | <ComboBox x:Name="comboBoxFSColor" Height="33" VerticalAlignment="Top" SelectedIndex="0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="16" DropDownClosed="comboBoxFSColor_DropDownClosed" HorizontalAlignment="Right" Width="95" Margin="0,161,117,0"> |
||
1082 | <ComboBoxItem Content="red"/> |
||
1083 | <ComboBoxItem Content="green"/> |
||
1084 | <ComboBoxItem Content="blue"/> |
||
1085 | <ComboBoxItem Content="yellow"/> |
||
1086 | <ComboBoxItem Content="pink"/> |
||
1087 | </ComboBox> |
||
1088 | <Label x:Name="label4_Copy3" Content="Failsave color" HorizontalAlignment="Right" Margin="0,137,134,0" VerticalAlignment="Top" Width="80" Foreground="White"/> |
||
1089 | <ComboBox x:Name="comboBoxWPColor" Height="33" Margin="0,99,117,0" VerticalAlignment="Top" SelectedIndex="2" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="16" DropDownClosed="comboBoxWPColor_DropDownClosed" HorizontalAlignment="Right" Width="95"> |
||
1090 | <ComboBoxItem Content="red"/> |
||
1091 | <ComboBoxItem Content="green"/> |
||
1092 | <ComboBoxItem Content="blue"/> |
||
1093 | <ComboBoxItem Content="yellow"/> |
||
1094 | <ComboBoxItem Content="pink"/> |
||
1095 | </ComboBox> |
||
1096 | <Label x:Name="label4_Copy1" Content="WP color" HorizontalAlignment="Right" Margin="0,75,134,0" VerticalAlignment="Top" Width="80" Foreground="White"/> |
||
1097 | <ComboBox x:Name="comboBoxPOIColor" Margin="0,99,12,0" SelectedIndex="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="16" DropDownClosed="comboBoxPOIColor_DropDownClosed" HorizontalAlignment="Right" Width="95" Height="33" VerticalAlignment="Top"> |
||
1098 | <ComboBoxItem Content="red"/> |
||
1099 | <ComboBoxItem Content="green"/> |
||
1100 | <ComboBoxItem Content="blue"/> |
||
1101 | <ComboBoxItem Content="yellow"/> |
||
1102 | <ComboBoxItem Content="pink"/> |
||
1103 | </ComboBox> |
||
1104 | <Label x:Name="label4_Copy2" Content="POI color" HorizontalAlignment="Right" Margin="0,75,28,0" VerticalAlignment="Top" Width="80" Foreground="White"/> |
||
1105 | <ComboBox x:Name="comboBoxCopterColor" Margin="0,29,117,0" SelectedIndex="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="16" HorizontalAlignment="Right" Width="95" Height="33" VerticalAlignment="Top" DropDownClosed="comboBoxCopterColor_DropDownClosed"> |
||
1106 | <ComboBoxItem Content="red"/> |
||
1107 | <ComboBoxItem Content="green"/> |
||
1108 | <ComboBoxItem Content="blue"/> |
||
1109 | <ComboBoxItem Content="yellow"/> |
||
1110 | <ComboBoxItem Content="pink"/> |
||
1111 | </ComboBox> |
||
1112 | <Label x:Name="label4_Copy4" Content="Copter color" HorizontalAlignment="Right" Margin="0,3,134,0" VerticalAlignment="Top" Width="80" Foreground="White"/> |
||
2372 | - | 1113 | <ComboBox x:Name="comboBoxRouteColor" Height="33" VerticalAlignment="Top" SelectedIndex="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="16" HorizontalAlignment="Right" Width="95" Margin="0,221,117,0" DropDownClosed="comboBoxRouteColor_DropDownClosed"> |
2354 | - | 1114 | <ComboBoxItem Content="red"/> |
1115 | <ComboBoxItem Content="green"/> |
||
1116 | <ComboBoxItem Content="blue"/> |
||
1117 | <ComboBoxItem Content="yellow"/> |
||
1118 | <ComboBoxItem Content="pink"/> |
||
1119 | </ComboBox> |
||
2372 | - | 1120 | <Label x:Name="label4_Copy10" Content="Route color" HorizontalAlignment="Right" Margin="0,195,133,0" VerticalAlignment="Top" Width="80" Foreground="White"/> |
1121 | <ComboBox x:Name="comboBoxLandingColor" Height="33" VerticalAlignment="Top" SelectedIndex="2" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="16" DropDownClosed="comboBoxLandingColor_DropDownClosed" HorizontalAlignment="Right" Width="95" Margin="0,161,12,0"> |
||
1122 | <ComboBoxItem Content="red"/> |
||
1123 | <ComboBoxItem Content="green"/> |
||
1124 | <ComboBoxItem Content="blue"/> |
||
1125 | <ComboBoxItem Content="yellow"/> |
||
1126 | <ComboBoxItem Content="pink"/> |
||
1127 | </ComboBox> |
||
1128 | <Label x:Name="label4_Copy31" Content="Landing color" HorizontalAlignment="Right" Margin="0,137,12,0" VerticalAlignment="Top" Width="96" Foreground="White"/> |
||
2385 | - | 1129 | <ComboBox x:Name="comboBoxCopterHeadingColor" Margin="0,29,11,0" SelectedIndex="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="16" HorizontalAlignment="Right" Width="95" Height="33" VerticalAlignment="Top" DropDownClosed="comboBoxCopterHeadingColor_DropDownClosed"> |
1130 | <ComboBoxItem Content="red"/> |
||
1131 | <ComboBoxItem Content="green"/> |
||
1132 | <ComboBoxItem Content="blue"/> |
||
1133 | <ComboBoxItem Content="yellow"/> |
||
1134 | <ComboBoxItem Content="pink"/> |
||
1135 | </ComboBox> |
||
1136 | <Label x:Name="label4_Copy33" Content="Heading color" HorizontalAlignment="Right" Margin="0,3,12,0" VerticalAlignment="Top" Width="96" Foreground="White"/> |
||
2354 | - | 1137 | |
1138 | </Grid> |
||
1139 | </Border> |
||
1140 | |||
1141 | </Grid> |
||
1142 | </TabItem> |
||
2287 | - | 1143 | </TabControl> |
1144 | </Grid> |
||
1145 | <Border BorderThickness="0,2,0,0" Height="2" Margin="0,34,0,0" VerticalAlignment="Top" Visibility="Hidden"> |
||
1146 | <Border.BorderBrush> |
||
1147 | <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> |
||
1148 | <GradientStop Color="#FF9DCAF9" Offset="0"/> |
||
1149 | <GradientStop Color="#FF004385" Offset="1"/> |
||
1150 | </LinearGradientBrush> |
||
1151 | </Border.BorderBrush> |
||
1152 | </Border> |
||
2309 | - | 1153 | <ArtificialHorizon:ArtificialHorizon x:Name="ArtHor" Margin="0,0,-22,-29" Height="143" Width="177" HorizontalAlignment="Right" VerticalAlignment="Bottom" Visibility="{Binding IsChecked, ElementName=chkBoxShowHorizon, Converter={StaticResource BooleanToVisibility}}"> |
2287 | - | 1154 | <ArtificialHorizon:ArtificialHorizon.RenderTransform> |
1155 | <ScaleTransform |
||
1156 | CenterX="136" |
||
1157 | CenterY="117" |
||
1158 | ScaleX="{Binding ElementName=UIScaleHorizonSlider,Path=Value}" |
||
1159 | ScaleY="{Binding ElementName=UIScaleHorizonSlider,Path=Value}" |
||
1160 | /> |
||
1161 | </ArtificialHorizon:ArtificialHorizon.RenderTransform> |
||
1162 | </ArtificialHorizon:ArtificialHorizon> |
||
2381 | - | 1163 | <Grid x:Name="GridLog" Margin="257,0,0,0" Background="#66000000" Height="66" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="518"> |
2287 | - | 1164 | <Grid.LayoutTransform> |
1165 | <ScaleTransform |
||
1166 | CenterX="0" |
||
1167 | CenterY="0" |
||
1168 | ScaleX="{Binding ElementName=UIScaleLOGSlider,Path=Value}" |
||
1169 | ScaleY="{Binding ElementName=UIScaleLOGSlider,Path=Value}" |
||
1170 | /> |
||
1171 | </Grid.LayoutTransform> |
||
2381 | - | 1172 | <RichTextBox x:Name="rtfError" Height="60" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="232" Margin="0,0,4,2" IsDocumentEnabled="True" AllowDrop="False" AcceptsReturn="False" IsReadOnly="True" IsUndoEnabled="False" UndoLimit="0" /> |
1173 | <RichTextBox x:Name="rtfTerminal" Margin="0,0,239,2" HorizontalAlignment="Right" Width="276" Height="60" VerticalAlignment="Bottom" /> |
||
2287 | - | 1174 | </Grid> |
2309 | - | 1175 | <Grid x:Name="GridMotors" Margin="0,38,25,0" Background="#66000000" Height="285" VerticalAlignment="Top" HorizontalAlignment="Right" Width="132" Visibility="Hidden"> |
2287 | - | 1176 | <Grid.LayoutTransform> |
1177 | <ScaleTransform |
||
1178 | CenterX="0" |
||
1179 | CenterY="0" |
||
1180 | ScaleX="{Binding ElementName=UIScaleMotorsSlider,Path=Value}" |
||
1181 | ScaleY="{Binding ElementName=UIScaleMotorsSlider,Path=Value}" |
||
1182 | /> |
||
1183 | </Grid.LayoutTransform> |
||
2309 | - | 1184 | <DataGrid x:Name="dgvMotors1" HorizontalAlignment="Left" Height="272" Margin="1,3,-6,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}"/> |
2287 | - | 1185 | <!--<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"/>--> |
1186 | </Grid> |
||
2309 | - | 1187 | <Grid x:Name="GridOSD" Margin="0,38,330,0" Background="#66000000" Height="127" VerticalAlignment="Top" HorizontalAlignment="Right" Width="257" Visibility="Hidden"> |
2287 | - | 1188 | <Grid.LayoutTransform> |
1189 | <ScaleTransform |
||
1190 | CenterX="0" |
||
1191 | CenterY="0" |
||
1192 | ScaleX="{Binding ElementName=UIScaleOSDSlider,Path=Value}" |
||
1193 | ScaleY="{Binding ElementName=UIScaleOSDSlider,Path=Value}" |
||
1194 | /> |
||
1195 | </Grid.LayoutTransform> |
||
1196 | <RichTextBox x:Name="rtfOSD" Height="83" VerticalAlignment="Top" HorizontalAlignment="Left" Width="190" Margin="10,5,0,0" FontFamily="Consolas" FontSize="16" /> |
||
1197 | <ComboBox x:Name="cbOSD" HorizontalAlignment="Left" Margin="203,96,0,0" VerticalAlignment="Top" Width="47" Height="27" DropDownClosed="cbOSD_DropDownClosing"/> |
||
1198 | <Button x:Name="btnOSDBackward" Content="Å" HorizontalAlignment="Left" Height="34" Margin="203,44,0,0" VerticalAlignment="Top" Width="47" FontFamily="Wingdings 3" Click="btnOSDBackward_Click"/> |
||
1199 | <Button x:Name="btnOSDForward" Content="Æ" HorizontalAlignment="Left" Height="34" Margin="203,5,0,0" VerticalAlignment="Top" Width="47" FontFamily="Wingdings 3" Click="btnOSDForward_Click"/> |
||
1200 | <Label x:Name="label_Copy7" Content="Page" HorizontalAlignment="Left" Margin="205,78,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="47"/> |
||
1201 | <Button x:Name="btnOSDEnter" Content="" HorizontalAlignment="Left" Height="34" Margin="87,90,0,0" VerticalAlignment="Top" Width="52" Click="btnOSDEnter_Click"/> |
||
1202 | <Button x:Name="btnOSDLeave" Content="" HorizontalAlignment="Left" Height="34" Margin="144,90,0,0" VerticalAlignment="Top" Width="52" Click="btnOSDLeave_Click"/> |
||
1203 | </Grid> |
||
2381 | - | 1204 | <Label x:Name="lblSimu" Content="Simulation active" HorizontalAlignment="Left" Height="22" Margin="257,37,0,0" VerticalAlignment="Top" Width="135" FontSize="16" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Padding="0" FontFamily="Arial" BorderBrush="#FFF9A40F" BorderThickness="2" Foreground="Black" Visibility="Hidden"> |
1205 | <Label.Background> |
||
1206 | <LinearGradientBrush EndPoint="0,1" StartPoint="0,0"> |
||
1207 | <GradientStop Color="#FFFFD8C6"/> |
||
1208 | <GradientStop Color="#FFFFD29B" Offset="0.18"/> |
||
1209 | <GradientStop Color="#FFFFD07F" Offset="0.391"/> |
||
1210 | <GradientStop Color="#FFFFA261" Offset="1"/> |
||
1211 | </LinearGradientBrush> |
||
1212 | </Label.Background> |
||
1213 | </Label> |
||
2392 | - | 1214 | <Grid x:Name="GridWP" Margin="23,36,25,0" Background="#7F000000" Height="526" VerticalAlignment="Top" Visibility="Collapsed"> |
2359 | - | 1215 | <Label x:Name="label4" Content="points" HorizontalAlignment="Right" Margin="0,480,51,0" VerticalAlignment="Top" Width="53" Foreground="White" Height="19" HorizontalContentAlignment="Right" Padding="0" VerticalContentAlignment="Center" FontSize="13"/> |
1216 | <Label x:Name="lblWPCount" Content="##" HorizontalAlignment="Right" Margin="0,482,19,0" VerticalAlignment="Top" Width="26" Foreground="White" HorizontalContentAlignment="Right" Padding="0" Height="16" FontSize="13"/> |
||
2287 | - | 1217 | <Label x:Name="label4_Copy" Content="WP Index" HorizontalAlignment="Left" Margin="94,194,0,0" VerticalAlignment="Top" Width="80" Foreground="White" Visibility="Hidden"/> |
1218 | <Label x:Name="lblWPIndex" Content="##" HorizontalAlignment="Left" Margin="170,194,0,0" VerticalAlignment="Top" Width="28" Foreground="White" Visibility="Hidden"/> |
||
2385 | - | 1219 | <Border Margin="10,458,0,1" BorderBrush="White" BorderThickness="0.5" CornerRadius="5" HorizontalAlignment="Left" Width="584"> |
1220 | <Grid Margin="0,0,-1,4"> |
||
2354 | - | 1221 | <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="111,0,0,-1" Height="40" VerticalAlignment="Bottom"> |
2324 | - | 1222 | <Rectangle.Style> |
1223 | <Style TargetType="{x:Type Rectangle}"> |
||
1224 | <Style.Triggers> |
||
1225 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnGetWPList}" Value="True"> |
||
1226 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
||
1227 | </DataTrigger> |
||
1228 | </Style.Triggers> |
||
1229 | </Style> |
||
1230 | </Rectangle.Style> |
||
1231 | </Rectangle> |
||
2354 | - | 1232 | <Button x:Name="btnGetWPList" Content="" HorizontalAlignment="Left" Height="36" Margin="112,0,0,0" VerticalAlignment="Bottom" Width="92" Click="btnGetWP_Click" ToolTip="Download WP-list from copter" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}"> |
2324 | - | 1233 | <Button.Background> |
2361 | - | 1234 | <ImageBrush ImageSource="Images/FromCopterToPc1.png" Stretch="Uniform"/> |
2324 | - | 1235 | </Button.Background> |
1236 | </Button> |
||
2354 | - | 1237 | <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="12,0,0,-1" Height="40" VerticalAlignment="Bottom"> |
2324 | - | 1238 | <Rectangle.Style> |
1239 | <Style TargetType="{x:Type Rectangle}"> |
||
1240 | <Style.Triggers> |
||
1241 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnSendWPList}" Value="True"> |
||
1242 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
||
1243 | </DataTrigger> |
||
1244 | </Style.Triggers> |
||
1245 | </Style> |
||
1246 | </Rectangle.Style> |
||
1247 | </Rectangle> |
||
2354 | - | 1248 | <Button x:Name="btnSendWPList" Content="" HorizontalAlignment="Left" Height="36" Margin="13,0,0,0" VerticalAlignment="Bottom" Width="92" ToolTip="Upload WP-list to copter" BorderBrush="#FFBDBDBD" Click="btnSendWPList_Click" Style="{DynamicResource ButtonWithoutEffectStyle}"> |
2324 | - | 1249 | <Button.Background> |
2361 | - | 1250 | <ImageBrush ImageSource="Images/WPToCopter1.png" Stretch="Uniform"/> |
2324 | - | 1251 | </Button.Background> |
1252 | </Button> |
||
2385 | - | 1253 | <Rectangle HorizontalAlignment="Left" Width="68" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="228,0,0,-1" Height="40" VerticalAlignment="Bottom"> |
2324 | - | 1254 | <Rectangle.Style> |
1255 | <Style TargetType="{x:Type Rectangle}"> |
||
1256 | <Style.Triggers> |
||
1257 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnLoadWPLFile}" Value="True"> |
||
1258 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
||
1259 | </DataTrigger> |
||
1260 | </Style.Triggers> |
||
1261 | </Style> |
||
1262 | </Rectangle.Style> |
||
1263 | </Rectangle> |
||
2385 | - | 1264 | <Button x:Name="btnLoadWPLFile" Content="" HorizontalAlignment="Left" Height="37" Margin="228,0,0,0" VerticalAlignment="Bottom" Width="68" ToolTip="load wp-list from file" BorderBrush="#FFBDBDBD" HorizontalContentAlignment="Center" Click="btnLoadWPLFile_Click" Style="{DynamicResource ButtonWithoutEffectStyle}"> |
2324 | - | 1265 | <Button.Background> |
1266 | <ImageBrush ImageSource="Images/LoadFile.png" Stretch="Uniform"/> |
||
1267 | </Button.Background> |
||
1268 | </Button> |
||
2354 | - | 1269 | <Label x:Name="label4_Copy5" Content="receive from copter" HorizontalAlignment="Left" Margin="106,0,0,36" VerticalAlignment="Bottom" Width="116" Foreground="White" Height="26"/> |
1270 | <Label x:Name="label4_Copy6" Content="send to copter" HorizontalAlignment="Left" Margin="9,0,0,36" VerticalAlignment="Bottom" Width="86" Foreground="White" Height="26"/> |
||
2385 | - | 1271 | <Label x:Name="label4_Copy7" Content="load file" HorizontalAlignment="Left" Margin="225,0,0,35" VerticalAlignment="Bottom" Width="62" Foreground="White"/> |
1272 | <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="384,0,0,-1" Height="40" VerticalAlignment="Bottom"> |
||
2335 | - | 1273 | <Rectangle.Style> |
1274 | <Style TargetType="{x:Type Rectangle}"> |
||
1275 | <Style.Triggers> |
||
1276 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnClearWPList}" Value="True"> |
||
1277 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
||
1278 | </DataTrigger> |
||
1279 | </Style.Triggers> |
||
1280 | </Style> |
||
1281 | </Rectangle.Style> |
||
1282 | </Rectangle> |
||
2385 | - | 1283 | <Button x:Name="btnClearWPList" Content="" HorizontalAlignment="Left" Height="36" Margin="384,0,0,1" VerticalAlignment="Bottom" Width="94" ToolTip="clear all items from the local WP list" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnClearWPList_Click"> |
2335 | - | 1284 | <Button.Background> |
1285 | <ImageBrush ImageSource="Images/DeleteList.png" Stretch="Uniform"/> |
||
1286 | </Button.Background> |
||
1287 | </Button> |
||
2385 | - | 1288 | <Label x:Name="label4_Copy11" Content="clear local list" HorizontalAlignment="Left" Margin="380,0,0,35" VerticalAlignment="Bottom" Width="93" Foreground="White"/> |
1289 | <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="483,0,0,-1" Height="40" VerticalAlignment="Bottom"> |
||
2340 | - | 1290 | <Rectangle.Style> |
1291 | <Style TargetType="{x:Type Rectangle}"> |
||
1292 | <Style.Triggers> |
||
1293 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnClearCopterList}" Value="True"> |
||
1294 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
||
1295 | </DataTrigger> |
||
1296 | </Style.Triggers> |
||
1297 | </Style> |
||
1298 | </Rectangle.Style> |
||
1299 | </Rectangle> |
||
2385 | - | 1300 | <Button x:Name="btnClearCopterList" Content="" HorizontalAlignment="Left" Height="36" Margin="485,0,0,1" VerticalAlignment="Bottom" Width="92" ToolTip="clear all items from the WP list in the copter" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnClearCopterList_Click"> |
2340 | - | 1301 | <Button.Background> |
1302 | <ImageBrush ImageSource="Images/DeleteCopterList.png" Stretch="Uniform"/> |
||
1303 | </Button.Background> |
||
1304 | </Button> |
||
2385 | - | 1305 | <Label x:Name="label4_Copy12" Content="clear copter list" HorizontalAlignment="Left" Margin="479,0,0,36" VerticalAlignment="Bottom" Width="93" Foreground="White" Height="26"/> |
1306 | <Rectangle HorizontalAlignment="Left" Width="68" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="300,0,0,-1" Height="40" VerticalAlignment="Bottom"> |
||
2350 | - | 1307 | <Rectangle.Style> |
1308 | <Style TargetType="{x:Type Rectangle}"> |
||
1309 | <Style.Triggers> |
||
1310 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnSaveWPLFile}" Value="True"> |
||
1311 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
||
1312 | </DataTrigger> |
||
1313 | </Style.Triggers> |
||
1314 | </Style> |
||
1315 | </Rectangle.Style> |
||
1316 | </Rectangle> |
||
2385 | - | 1317 | <Button x:Name="btnSaveWPLFile" Content="" HorizontalAlignment="Left" Height="37" Margin="300,0,0,0" VerticalAlignment="Bottom" Width="68" ToolTip="save list to *.wpl file" BorderBrush="#FFBDBDBD" HorizontalContentAlignment="Center" Click="btnSaveWPLFile_Click" Style="{DynamicResource ButtonWithoutEffectStyle}"> |
2350 | - | 1318 | <Button.Background> |
1319 | <ImageBrush ImageSource="Images/SaveFile.png" Stretch="Uniform"/> |
||
1320 | </Button.Background> |
||
1321 | </Button> |
||
2385 | - | 1322 | <Label x:Name="label4_Copy13" Content="save file" HorizontalAlignment="Left" Margin="297,0,0,35" VerticalAlignment="Bottom" Width="71" Foreground="White"/> |
2324 | - | 1323 | </Grid> |
1324 | </Border> |
||
2376 | - | 1325 | <Border Margin="10,338,0,73" BorderBrush="White" BorderThickness="0.5" CornerRadius="5" HorizontalAlignment="Left" Width="831"> |
2355 | - | 1326 | <Grid Margin="-0.5,-0.5,-0.5,4.5"> |
1327 | <ComboBox x:Name="cbWPEditType" HorizontalAlignment="Left" Height="22" Margin="10,24,0,0" VerticalAlignment="Top" Width="66"> |
||
1328 | <ComboBoxItem Content="WP"/> |
||
1329 | <ComboBoxItem Content="POI"/> |
||
1330 | <ComboBoxItem Content="Failsafe"/> |
||
2372 | - | 1331 | <ComboBoxItem Content="Landing"/> |
2355 | - | 1332 | </ComboBox> |
1333 | <Label x:Name="label4a" Content="Type" HorizontalAlignment="Left" Margin="11,6,0,0" Width="39" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/> |
||
1334 | <Label x:Name="label4b" Content="Prefix" HorizontalAlignment="Left" Margin="81,6,0,0" Width="35" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/> |
||
2369 | - | 1335 | <TextBox x:Name="tbWPEditPrefix" HorizontalAlignment="Left" Height="22" Margin="81,24,0,0" VerticalAlignment="Top" Width="29" IsUndoEnabled="False" MaxLines="1" MaxLength="1" Foreground="White" Background="{x:Null}" VerticalContentAlignment="Center" IsTabStop="False"/> |
2355 | - | 1336 | <Label x:Name="label4_Copy16" Content="Latitude" HorizontalAlignment="Left" Margin="115,6,0,0" Width="54" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/> |
2369 | - | 1337 | <TextBox x:Name="tbWPEditLat" HorizontalAlignment="Left" Height="22" Margin="115,24,0,0" VerticalAlignment="Top" Width="76" IsUndoEnabled="False" MaxLines="1" MaxLength="10" Foreground="White" Background="{x:Null}" VerticalContentAlignment="Center" TouchDown="tbWPEdit_TouchDown" KeyDown="tbWPEdit_KeyDown" PreviewMouseLeftButtonDown="tbWPEdit_MouseDown" IsTabStop="False" IsReadOnly="True" /> |
2355 | - | 1338 | <Label x:Name="label4_Copy17" Content="Longitude" HorizontalAlignment="Left" Margin="196,6,0,0" Width="54" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/> |
2369 | - | 1339 | <TextBox x:Name="tbWPEditLon" HorizontalAlignment="Left" Height="22" Margin="196,24,0,0" VerticalAlignment="Top" Width="76" IsUndoEnabled="False" MaxLines="1" MaxLength="10" Foreground="White" Background="{x:Null}" VerticalContentAlignment="Center" TouchDown="tbWPEdit_TouchDown" KeyDown="tbWPEdit_KeyDown" PreviewMouseLeftButtonDown="tbWPEdit_MouseDown" IsTabStop="False" IsReadOnly="True"/> |
2355 | - | 1340 | <Label x:Name="label4_Copy18" Content="Altitude" HorizontalAlignment="Left" Margin="277,6,0,0" Width="54" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/> |
2369 | - | 1341 | <TextBox x:Name="tbWPEditAlt" HorizontalAlignment="Left" Height="22" Margin="277,24,0,0" VerticalAlignment="Top" Width="42" IsUndoEnabled="False" MaxLines="1" MaxLength="7" Foreground="White" Background="{x:Null}" VerticalContentAlignment="Center" TouchDown="tbWPEdit_TouchDown" KeyDown="tbWPEdit_KeyDown" PreviewMouseLeftButtonDown="tbWPEdit_MouseDown" IsTabStop="False" IsReadOnly="True"/> |
2355 | - | 1342 | <Label x:Name="label4_Copy19" Content="Heading" HorizontalAlignment="Left" Margin="324,6,0,0" Width="54" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/> |
2369 | - | 1343 | <TextBox x:Name="tbWPEditHeading" HorizontalAlignment="Left" Height="22" Margin="324,24,0,0" VerticalAlignment="Top" Width="69" IsUndoEnabled="False" MaxLines="1" MaxLength="7" Foreground="White" Background="{x:Null}" VerticalContentAlignment="Center" TouchDown="tbWPEdit_TouchDown" KeyDown="tbWPEdit_KeyDown" PreviewMouseLeftButtonDown="tbWPEdit_MouseDown" IsTabStop="False" IsReadOnly="True"/> |
2355 | - | 1344 | <Label x:Name="label4_Copy20" Content="Speed" HorizontalAlignment="Left" Margin="398,6,0,0" Width="54" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/> |
2369 | - | 1345 | <TextBox x:Name="tbWPEditSpeed" HorizontalAlignment="Left" Height="22" Margin="398,24,0,0" VerticalAlignment="Top" Width="65" IsUndoEnabled="False" MaxLines="1" MaxLength="6" Foreground="White" Background="{x:Null}" VerticalContentAlignment="Center" TouchDown="tbWPEdit_TouchDown" KeyDown="tbWPEdit_KeyDown" PreviewMouseLeftButtonDown="tbWPEdit_MouseDown" IsTabStop="False" IsReadOnly="True"/> |
2355 | - | 1346 | <ComboBox x:Name="cbWPEditSpeed" HorizontalAlignment="Left" Height="22" Margin="398,51,0,0" VerticalAlignment="Top" Width="65"> |
1347 | <ComboBoxItem Content="MAX"/> |
||
1348 | <ComboBoxItem Content="m/s"/> |
||
1349 | <ComboBoxItem Content="Poti 1"/> |
||
1350 | <ComboBoxItem Content="Poti 2"/> |
||
1351 | <ComboBoxItem Content="Poti 3"/> |
||
1352 | <ComboBoxItem Content="Poti 4"/> |
||
1353 | <ComboBoxItem Content="Poti 5"/> |
||
1354 | <ComboBoxItem Content="Poti 6"/> |
||
1355 | <ComboBoxItem Content="Poti 7"/> |
||
1356 | <ComboBoxItem Content="Poti 8"/> |
||
1357 | </ComboBox> |
||
1358 | <ComboBox x:Name="cbWPEditHeading" HorizontalAlignment="Left" Height="22" Margin="324,51,0,0" VerticalAlignment="Top" Width="69"> |
||
1359 | <ComboBoxItem Content=" - - - " HorizontalContentAlignment="Center"/> |
||
1360 | <ComboBoxItem Content="WP/POI"/> |
||
1361 | <ComboBoxItem Content="degree"/> |
||
1362 | </ComboBox> |
||
1363 | <Label x:Name="label4_Copy21" Content="Climbrate" HorizontalAlignment="Left" Margin="468,6,0,0" Width="54" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/> |
||
2369 | - | 1364 | <TextBox x:Name="tbWPEditClimbrate" HorizontalAlignment="Left" Height="22" Margin="468,24,0,0" VerticalAlignment="Top" Width="61" IsUndoEnabled="False" MaxLines="1" MaxLength="4" Foreground="White" Background="{x:Null}" VerticalContentAlignment="Center" TouchDown="tbWPEdit_TouchDown" KeyDown="tbWPEdit_KeyDown" PreviewMouseLeftButtonDown="tbWPEdit_MouseDown" IsTabStop="False" IsReadOnly="True"/> |
2355 | - | 1365 | <ComboBox x:Name="cbWPEditClimbrate" HorizontalAlignment="Left" Height="22" Margin="468,51,0,0" VerticalAlignment="Top" Width="61"> |
1366 | <ComboBoxItem Content="AUTO"/> |
||
1367 | <ComboBoxItem Content="m/s"/> |
||
1368 | </ComboBox> |
||
1369 | <Label x:Name="label4_Copy22" Content="Radius" HorizontalAlignment="Left" Margin="534,6,0,0" Width="54" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/> |
||
2369 | - | 1370 | <TextBox x:Name="tbWPEditRadius" HorizontalAlignment="Left" Height="22" Margin="534,24,0,0" VerticalAlignment="Top" Width="42" IsUndoEnabled="False" MaxLines="1" MaxLength="3" Foreground="White" Background="{x:Null}" VerticalContentAlignment="Center" TouchDown="tbWPEdit_TouchDown" KeyDown="tbWPEdit_KeyDown" PreviewMouseLeftButtonDown="tbWPEdit_MouseDown" IsTabStop="False" IsReadOnly="True"/> |
2355 | - | 1371 | <Label x:Name="label4_Copy23" Content="Holdtime" HorizontalAlignment="Left" Margin="581,6,0,0" Width="54" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/> |
2369 | - | 1372 | <TextBox x:Name="tbWPEditHoldtime" HorizontalAlignment="Left" Height="22" Margin="581,24,0,0" VerticalAlignment="Top" Width="42" IsUndoEnabled="False" MaxLines="1" MaxLength="2" Foreground="White" Background="{x:Null}" VerticalContentAlignment="Center" TouchDown="tbWPEdit_TouchDown" KeyDown="tbWPEdit_KeyDown" PreviewMouseLeftButtonDown="tbWPEdit_MouseDown" IsTabStop="False" IsReadOnly="True"/> |
2355 | - | 1373 | <Label x:Name="label4_Copy24" Content="AutoTrig" HorizontalAlignment="Left" Margin="635,6,0,0" Width="54" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/> |
2369 | - | 1374 | <TextBox x:Name="tbWPEditAutoTrigger" HorizontalAlignment="Left" Height="22" Margin="635,24,0,0" VerticalAlignment="Top" Width="42" IsUndoEnabled="False" MaxLines="1" MaxLength="2" Foreground="White" Background="{x:Null}" VerticalContentAlignment="Center" TouchDown="tbWPEdit_TouchDown" KeyDown="tbWPEdit_KeyDown" PreviewMouseLeftButtonDown="tbWPEdit_MouseDown" IsTabStop="False" IsReadOnly="True"/> |
2355 | - | 1375 | <Label x:Name="label4_Copy25" Content="CamAngle" HorizontalAlignment="Left" Margin="688,6,0,0" Width="54" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/> |
2369 | - | 1376 | <TextBox x:Name="tbWPEditCamAngle" HorizontalAlignment="Left" Height="22" Margin="688,24,0,0" VerticalAlignment="Top" Width="69" IsUndoEnabled="False" MaxLines="1" MaxLength="2" Foreground="White" Background="{x:Null}" VerticalContentAlignment="Center" TouchDown="tbWPEdit_TouchDown" KeyDown="tbWPEdit_KeyDown" PreviewMouseLeftButtonDown="tbWPEdit_MouseDown" IsTabStop="False" IsReadOnly="True"/> |
2355 | - | 1377 | <ComboBox x:Name="cbWPEditCamAngle" HorizontalAlignment="Left" Height="22" Margin="688,51,0,0" VerticalAlignment="Top" Width="69"> |
1378 | <ComboBoxItem Content=" - - - " HorizontalContentAlignment="Center"/> |
||
1379 | <ComboBoxItem Content="AUTO"/> |
||
1380 | <ComboBoxItem Content="degree"/> |
||
1381 | </ComboBox> |
||
1382 | <Label x:Name="label4_Copy26" Content="Out1Timer" HorizontalAlignment="Left" Margin="762,6,0,0" Width="63" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/> |
||
2369 | - | 1383 | <TextBox x:Name="tbWPEditOut1" HorizontalAlignment="Left" Height="22" Margin="762,24,0,0" VerticalAlignment="Top" Width="42" IsUndoEnabled="False" MaxLines="1" MaxLength="2" Foreground="White" Background="{x:Null}" VerticalContentAlignment="Center" TouchDown="tbWPEdit_TouchDown" KeyDown="tbWPEdit_KeyDown" PreviewMouseLeftButtonDown="tbWPEdit_MouseDown" IsTabStop="False" IsReadOnly="True"/> |
2385 | - | 1384 | <Rectangle HorizontalAlignment="Left" Width="81" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="8,0,0,-2" Height="40" VerticalAlignment="Bottom"> |
2356 | - | 1385 | <Rectangle.Style> |
1386 | <Style TargetType="{x:Type Rectangle}"> |
||
1387 | <Style.Triggers> |
||
2359 | - | 1388 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnEditWPSave}" Value="True"> |
2356 | - | 1389 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
1390 | </DataTrigger> |
||
1391 | </Style.Triggers> |
||
1392 | </Style> |
||
1393 | </Rectangle.Style> |
||
1394 | </Rectangle> |
||
2385 | - | 1395 | <Button x:Name="btnEditWPSave" Content="" HorizontalAlignment="Left" Height="36" Margin="9,0,0,-1" VerticalAlignment="Bottom" Width="80" ToolTip="save the changes made to the list" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnEditWPSave_Click"> |
2356 | - | 1396 | <Button.Background> |
2359 | - | 1397 | <ImageBrush ImageSource="Images/Save.png" Stretch="Uniform"/> |
2356 | - | 1398 | </Button.Background> |
1399 | </Button> |
||
2385 | - | 1400 | <Label x:Name="label4_Copy27" Content="save changes" HorizontalAlignment="Left" Margin="6,0,0,34" VerticalAlignment="Bottom" Width="96" Foreground="White" Height="26"/> |
1401 | <Rectangle HorizontalAlignment="Left" Width="81" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="93,0,0,-2" Height="40" VerticalAlignment="Bottom"> |
||
2356 | - | 1402 | <Rectangle.Style> |
1403 | <Style TargetType="{x:Type Rectangle}"> |
||
1404 | <Style.Triggers> |
||
2363 | - | 1405 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnEditWPDel}" Value="True"> |
2356 | - | 1406 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
1407 | </DataTrigger> |
||
1408 | </Style.Triggers> |
||
1409 | </Style> |
||
1410 | </Rectangle.Style> |
||
1411 | </Rectangle> |
||
2385 | - | 1412 | <Button x:Name="btnEditWPDel" Content="" HorizontalAlignment="Left" Height="36" Margin="93,0,0,-1" VerticalAlignment="Bottom" Width="81" ToolTip="delete WP from list" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnEditWPDel_Click"> |
2356 | - | 1413 | <Button.Background> |
2359 | - | 1414 | <ImageBrush ImageSource="Images/Delete.png" Stretch="Uniform"/> |
2356 | - | 1415 | </Button.Background> |
1416 | </Button> |
||
2385 | - | 1417 | <Label x:Name="label4_Copy30" Content="delete WP" HorizontalAlignment="Left" Margin="93,0,0,34" VerticalAlignment="Bottom" Width="96" Foreground="White" Height="26"/> |
2376 | - | 1418 | <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="566,0,0,-2" Height="40" VerticalAlignment="Bottom" RenderTransformOrigin="0.5,0.525"> |
1419 | <Rectangle.Style> |
||
1420 | <Style TargetType="{x:Type Rectangle}"> |
||
1421 | <Style.Triggers> |
||
1422 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnSendActiveWP_Copy1}" Value="True"> |
||
1423 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
||
1424 | </DataTrigger> |
||
1425 | </Style.Triggers> |
||
1426 | </Style> |
||
1427 | </Rectangle.Style> |
||
1428 | </Rectangle> |
||
1429 | <Button x:Name="btnSendActiveWP_Copy1" Content="" HorizontalAlignment="Left" Height="36" Margin="567,0,0,-1" VerticalAlignment="Bottom" Width="93" ToolTip="Set WP as active WP" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnSendActiveWP_Click"> |
||
1430 | <Button.Background> |
||
1431 | <ImageBrush ImageSource="Images/Blitz.png" Stretch="Uniform"/> |
||
1432 | </Button.Background> |
||
1433 | </Button> |
||
1434 | <Label x:Name="label4_Copy29" Content="set as active WP" HorizontalAlignment="Left" Margin="564,0,0,34" VerticalAlignment="Bottom" Width="96" Foreground="White" Height="26"/> |
||
2385 | - | 1435 | <Rectangle HorizontalAlignment="Left" Width="81" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="191,0,0,-2" Height="40" VerticalAlignment="Bottom"> |
1436 | <Rectangle.Style> |
||
1437 | <Style TargetType="{x:Type Rectangle}"> |
||
1438 | <Style.Triggers> |
||
1439 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnEditWPSendToCopter}" Value="True"> |
||
1440 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
||
1441 | </DataTrigger> |
||
1442 | </Style.Triggers> |
||
1443 | </Style> |
||
1444 | </Rectangle.Style> |
||
1445 | </Rectangle> |
||
1446 | <Button x:Name="btnEditWPSendToCopter" Content="" HorizontalAlignment="Left" Height="36" Margin="191,0,0,-1" VerticalAlignment="Bottom" Width="81" ToolTip="send selected WP to copter" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnEditWPSendToCopter_Click"> |
||
1447 | <Button.Background> |
||
1448 | <ImageBrush ImageSource="Images/SendToCopter.png" Stretch="Uniform"/> |
||
1449 | </Button.Background> |
||
1450 | </Button> |
||
1451 | <Label x:Name="label4_Copy34" Content="send to copter" HorizontalAlignment="Left" Margin="191,0,0,34" VerticalAlignment="Bottom" Width="96" Foreground="White" Height="26"/> |
||
2355 | - | 1452 | </Grid> |
1453 | </Border> |
||
2376 | - | 1454 | <DataGrid x:Name="dgvWP" Margin="10,5,10,195" Background="{x:Null}" ItemsSource="{Binding}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="14" HorizontalGridLinesBrush="#FF688CAF" VerticalGridLinesBrush="#FF688CAF" HeadersVisibility="Column" BorderBrush="{x:Null}" Padding="0" AutoGenerateColumns="False" MouseUp="dgvWP_MouseUp" CanUserAddRows="False" CanUserDeleteRows="False" CanUserResizeRows="False" MouseDoubleClick="dgvWP_MouseDoubleClick" CanUserReorderColumns="False" CanUserResizeColumns="False" CanUserSortColumns="False" IsReadOnly="True"> |
2313 | - | 1455 | <DataGrid.Columns> |
1456 | <DataGridTextColumn Header="Index" Binding="{Binding Path=Index}"/> |
||
1457 | <DataGridTextColumn Header="Type" Binding="{Binding Path=Type, Converter={StaticResource wpConvert}, ConverterParameter= Type}"/> |
||
1458 | <DataGridTextColumn Header="Name" Binding="{Binding Path=Name}"/> |
||
1459 | <DataGridTextColumn Header="Latitude" Binding="{Binding Path=Latitude, Converter={StaticResource wpConvert}, ConverterParameter= Latitude}"/> |
||
1460 | <DataGridTextColumn Header="Longitude" Binding="{Binding Path=Longitude, Converter={StaticResource wpConvert}, ConverterParameter= Longitude}"/> |
||
1461 | <DataGridTextColumn Header="Altitude" Binding="{Binding Path=Altitude, Converter={StaticResource wpConvert}, ConverterParameter= Altitude}"/> |
||
1462 | <DataGridTextColumn Header="Heading" Binding="{Binding Path=Heading, Converter={StaticResource wpConvert}, ConverterParameter= Heading}"/> |
||
1463 | <DataGridTextColumn Header="Speed" Binding="{Binding Path=Speed, Converter={StaticResource wpConvert}, ConverterParameter= Speed}"/> |
||
1464 | <DataGridTextColumn Header="ClimbRate" Binding="{Binding Path=ClimbRate, Converter={StaticResource wpConvert}, ConverterParameter= ClimbRate}"/> |
||
1465 | <DataGridTextColumn Header="Radius" Binding="{Binding Path=Radius, Converter={StaticResource wpConvert}, ConverterParameter= Radius}"/> |
||
1466 | <DataGridTextColumn Header="HoldTime" Binding="{Binding Path=HoldTime, Converter={StaticResource wpConvert}, ConverterParameter= DelayTime}"/> |
||
1467 | <DataGridTextColumn Header="AutoTrigger" Binding="{Binding Path=AutoTrigger, Converter={StaticResource wpConvert}, ConverterParameter= AutoTrigger}"/> |
||
1468 | <DataGridTextColumn Header="CamAngle" Binding="{Binding Path=CamAngle, Converter={StaticResource wpConvert}, ConverterParameter= CamAngle}"/> |
||
1469 | <DataGridTextColumn Header="Out1Timer" Binding="{Binding Path=Out1Timer}"/> |
||
1470 | </DataGrid.Columns> |
||
1471 | </DataGrid> |
||
2354 | - | 1472 | <CheckBox x:Name="checkBoxShowWPRoute" Content="show route" HorizontalAlignment="Right" Height="22" Margin="0,504,0,0" VerticalAlignment="Top" Width="84" Foreground="#FFFFFEFE" Click="checkBoxShowWPRoute_Click"/> |
2359 | - | 1473 | <Label x:Name="label4_Copy9" Content="distance" HorizontalAlignment="Right" Margin="0,462,51,0" VerticalAlignment="Top" Width="57" Foreground="White" Padding="0" Height="18" HorizontalContentAlignment="Right" VerticalContentAlignment="Center" FontSize="13"/> |
2356 | - | 1474 | <Label x:Name="lblWPRouteDistance" Content="0 m" HorizontalAlignment="Right" Margin="0,463,4,0" VerticalAlignment="Top" Width="42" Foreground="White" HorizontalContentAlignment="Right" VerticalContentAlignment="Center" Padding="0" FontSize="13"/> |
2359 | - | 1475 | <Label x:Name="label4_Copy14" Content="points NC (w/o POI)" HorizontalAlignment="Right" Margin="0,461,143,0" VerticalAlignment="Top" Width="118" Foreground="White" Height="20" HorizontalContentAlignment="Right" Padding="0" VerticalContentAlignment="Center" FontSize="13"/> |
1476 | <Label x:Name="lblWPCountNC" Content="##" HorizontalAlignment="Right" Margin="0,463,118,0" VerticalAlignment="Top" Width="25" Foreground="White" HorizontalContentAlignment="Right" Padding="0" Height="16" FontSize="13"/> |
||
1477 | <Label x:Name="label4_Copy15" Content="Index NC" HorizontalAlignment="Right" Margin="0,480,143,0" VerticalAlignment="Top" Width="65" Foreground="White" Height="21" HorizontalContentAlignment="Right" Padding="0" VerticalContentAlignment="Center" FontSize="13"/> |
||
1478 | <Label x:Name="lblWPIndexNC" Content="##" HorizontalAlignment="Right" Margin="0,482,118,0" VerticalAlignment="Top" Width="25" Foreground="White" HorizontalContentAlignment="Right" Padding="0" Height="16" FontSize="13"/> |
||
2376 | - | 1479 | <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="857,0,0,136" Height="40" VerticalAlignment="Bottom"> |
2359 | - | 1480 | <Rectangle.Style> |
1481 | <Style TargetType="{x:Type Rectangle}"> |
||
1482 | <Style.Triggers> |
||
1483 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnWPEditAddCurrentPos}" Value="True"> |
||
1484 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
||
1485 | </DataTrigger> |
||
1486 | </Style.Triggers> |
||
1487 | </Style> |
||
1488 | </Rectangle.Style> |
||
1489 | </Rectangle> |
||
2376 | - | 1490 | <Button x:Name="btnWPEditAddCurrentPos" Content="" HorizontalAlignment="Left" Height="36" Margin="858,0,0,137" VerticalAlignment="Bottom" Width="93" ToolTip="add current copter position to WP list" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnWPAddCurrentPos_Click"> |
2359 | - | 1491 | <Button.Background> |
1492 | <ImageBrush ImageSource="Images/CurrentPos.png" Stretch="Uniform"/> |
||
1493 | </Button.Background> |
||
1494 | </Button> |
||
2376 | - | 1495 | <Label x:Name="label4_Copy28" Content="add current Pos" HorizontalAlignment="Left" Margin="855,0,-1,172" VerticalAlignment="Bottom" Width="107" Foreground="White" Height="26"/> |
2398 | - | 1496 | <Rectangle x:Name="rectSimulate" HorizontalAlignment="Left" Width="59" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="608,0,0,7" Height="37" VerticalAlignment="Bottom" Visibility="Hidden"> |
2376 | - | 1497 | <Rectangle.Fill> |
1498 | <LinearGradientBrush EndPoint="0,1" StartPoint="0,0"> |
||
2398 | - | 1499 | <GradientStop Color="#FF9DFFAA"/> |
1500 | <GradientStop Color="#FF5DE094" Offset="0.236"/> |
||
1501 | <GradientStop Color="#FF5DD6A0" Offset="0.39"/> |
||
2376 | - | 1502 | <GradientStop Color="#FF4FCF8F" Offset="1"/> |
1503 | </LinearGradientBrush> |
||
1504 | </Rectangle.Fill> |
||
1505 | </Rectangle> |
||
2385 | - | 1506 | <Rectangle HorizontalAlignment="Left" Width="59" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="608,0,0,7" Height="37" VerticalAlignment="Bottom"> |
2359 | - | 1507 | <Rectangle.Style> |
1508 | <Style TargetType="{x:Type Rectangle}"> |
||
1509 | <Style.Triggers> |
||
2376 | - | 1510 | <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnWPSimulateStart}" Value="True"> |
2359 | - | 1511 | <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/> |
1512 | </DataTrigger> |
||
1513 | </Style.Triggers> |
||
1514 | </Style> |
||
1515 | </Rectangle.Style> |
||
1516 | </Rectangle> |
||
2385 | - | 1517 | <Button x:Name="btnWPSimulateStart" Content="" HorizontalAlignment="Left" Height="33" Margin="608,0,0,9" VerticalAlignment="Bottom" Width="58" ToolTip="Start/stop simulationmode on copter" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnWPSimulateStart_Click"> |
2359 | - | 1518 | <Button.Background> |
2376 | - | 1519 | <ImageBrush ImageSource="Images/Test.png" Stretch="Uniform"/> |
2359 | - | 1520 | </Button.Background> |
1521 | </Button> |
||
2385 | - | 1522 | <Label x:Name="label4_Copy32" Content="Simulation" HorizontalAlignment="Left" Margin="603,0,0,40" VerticalAlignment="Bottom" Width="74" Foreground="White" Height="26"/> |
2287 | - | 1523 | </Grid> |
2309 | - | 1524 | <Grid x:Name="GridSideBarR" Background="#66000000" Margin="0,36,0,0" HorizontalAlignment="Right" Width="23"> |
1525 | <Label x:Name="labelMotordata" Content="Motors" Padding="0" RenderTransformOrigin="0.5,0.5" Margin="-25,233,-26,0" HorizontalContentAlignment="Center" VerticalContentAlignment="Stretch" MouseDown="labelMotorData_MouseDown" FontSize="14" HorizontalAlignment="Left" Width="74" Height="22" VerticalAlignment="Top"> |
||
1526 | <Label.RenderTransform> |
||
1527 | <TransformGroup> |
||
1528 | <ScaleTransform/> |
||
1529 | <SkewTransform/> |
||
1530 | <RotateTransform Angle="90"/> |
||
1531 | <TranslateTransform/> |
||
1532 | </TransformGroup> |
||
1533 | </Label.RenderTransform> |
||
1534 | <Label.Style> |
||
1535 | <Style TargetType="{x:Type Label}"> |
||
1536 | <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/> |
||
1537 | <Style.Triggers> |
||
1538 | <Trigger Property="IsMouseOver" Value="True"> |
||
1539 | <Setter Property="Background" Value="{DynamicResource PressedItemBrush}"/> |
||
1540 | </Trigger> |
||
1541 | <DataTrigger Binding="{Binding IsVisible, ElementName=GridMotors}" Value="True"> |
||
1542 | <Setter Property="Background" Value="{DynamicResource ActiveItemBrush}"/> |
||
1543 | </DataTrigger> |
||
1544 | </Style.Triggers> |
||
1545 | </Style> |
||
1546 | </Label.Style> |
||
1547 | </Label> |
||
1548 | <Label x:Name="labelOSD" Content="OSD" Padding="0" RenderTransformOrigin="0.5,0.5" Margin="-25,158,-26,0" HorizontalContentAlignment="Center" VerticalContentAlignment="Stretch" MouseDown="labelOSD_MouseDown" FontSize="14" HorizontalAlignment="Left" Width="74" Height="22" VerticalAlignment="Top"> |
||
1549 | <Label.RenderTransform> |
||
1550 | <TransformGroup> |
||
1551 | <ScaleTransform/> |
||
1552 | <SkewTransform/> |
||
1553 | <RotateTransform Angle="90"/> |
||
1554 | <TranslateTransform/> |
||
1555 | </TransformGroup> |
||
1556 | </Label.RenderTransform> |
||
1557 | <Label.Style> |
||
1558 | <Style TargetType="{x:Type Label}"> |
||
1559 | <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/> |
||
1560 | <Style.Triggers> |
||
1561 | <Trigger Property="IsMouseOver" Value="True"> |
||
1562 | <Setter Property="Background" Value="{DynamicResource PressedItemBrush}"/> |
||
1563 | </Trigger> |
||
1564 | <DataTrigger Binding="{Binding IsVisible, ElementName=GridOSD}" Value="True"> |
||
1565 | <Setter Property="Background" Value="{DynamicResource ActiveItemBrush}"/> |
||
1566 | </DataTrigger> |
||
1567 | </Style.Triggers> |
||
1568 | </Style> |
||
1569 | </Label.Style> |
||
1570 | </Label> |
||
1571 | <TextBox x:Name="tbSideBarStatusMotors" HorizontalAlignment="Right" Height="21" Margin="0,9,1,0" TextWrapping="NoWrap" Text="M" VerticalAlignment="Top" Width="21" FontSize="14" BorderBrush="#FFD3D2D2" Background="Transparent" Foreground="#FFD3D2D2" HorizontalContentAlignment="Center" VerticalContentAlignment="Stretch" UndoLimit="0" AllowDrop="False" IsReadOnly="True" IsUndoEnabled="False" MaxLines="1" MinLines="1" MaxLength="1" ToolTip="Motors on/off" FontWeight="Bold"> |
||
1572 | <TextBox.Resources> |
||
1573 | <Style TargetType="{x:Type Border}"> |
||
1574 | <Setter Property="CornerRadius" Value="30"/> |
||
1575 | </Style> |
||
1576 | </TextBox.Resources> |
||
1577 | </TextBox> |
||
1578 | <TextBox x:Name="tbSideBarStatusPH" HorizontalAlignment="Left" Height="19" Margin="1,32,0,0" Text="PH" VerticalAlignment="Top" Width="21" Background="Transparent" Foreground="#FFD3D2D2" AllowDrop="False" BorderThickness="0.6" ToolTip="Position Hold / Coming Home" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" IsUndoEnabled="False" MaxLines="1" BorderBrush="#FFD3D2D2" UndoLimit="0" FontWeight="Bold"/> |
||
1579 | <TextBox x:Name="tbSideBarStatusCF" HorizontalAlignment="Left" Height="19" Margin="1,53,0,0" Text="CF" VerticalAlignment="Top" Width="21" Background="Transparent" Foreground="#FFD3D2D2" AllowDrop="False" BorderThickness="0.6" ToolTip="Carefree" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" IsUndoEnabled="False" MaxLines="1" BorderBrush="#FFD3D2D2" UndoLimit="0" FontWeight="Bold"/> |
||
1580 | <TextBox x:Name="tbSideBarStatusAC" HorizontalAlignment="Left" Height="19" Margin="1,74,0,0" Text="AC" VerticalAlignment="Top" Width="21" Background="Transparent" Foreground="#FFD3D2D2" AllowDrop="False" BorderThickness="0.6" ToolTip="Altitude control" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" IsUndoEnabled="False" MaxLines="1" BorderBrush="#FFD3D2D2" UndoLimit="0" FontWeight="Bold"/> |
||
1581 | <TextBox x:Name="tbSideBarStatusEmergencyLanding" HorizontalAlignment="Left" Height="21" Margin="1,95,0,0" TextWrapping="NoWrap" Text="H" VerticalAlignment="Top" Width="21" FontSize="14" BorderBrush="#FFD3D2D2" Background="Transparent" Foreground="#FFD3D2D2" HorizontalContentAlignment="Center" VerticalContentAlignment="Stretch" UndoLimit="0" AllowDrop="False" IsReadOnly="True" IsUndoEnabled="False" MaxLines="1" MinLines="1" MaxLength="1" ToolTip="Emergency landing" FontWeight="Bold"> |
||
1582 | <TextBox.Resources> |
||
1583 | <Style TargetType="{x:Type Border}"> |
||
1584 | <Setter Property="CornerRadius" Value="30"/> |
||
1585 | </Style> |
||
1586 | </TextBox.Resources> |
||
1587 | </TextBox> |
||
2324 | - | 1588 | <TextBox x:Name="tbSideBarGPXLog" Height="19" Margin="1,0,0,4" Text="GPX" Width="21" Background="Transparent" Foreground="#FFD3D2D2" AllowDrop="False" BorderThickness="0.6" ToolTip="GPX-Log active" IsUndoEnabled="False" MaxLines="1" BorderBrush="#FFD3D2D2" UndoLimit="0" FontSize="10" VerticalAlignment="Bottom" HorizontalAlignment="Left" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Center" Padding="-1.5,0,0,0"/> |
2309 | - | 1589 | </Grid> |
2287 | - | 1590 | <!--<Rectangle x:Name="rctConnection" Fill="#FFF4F4F5" Height="16" Margin="0,10,7,0" Stroke="Black" VerticalAlignment="Top" HorizontalAlignment="Right" Width="15"/>--> |
1591 | </Grid> |
||
1592 | <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}" > |
||
1593 | <Label.Background> |
||
1594 | <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0"> |
||
1595 | <GradientStop Color="#B2FF2121" Offset="0.457"/> |
||
1596 | <GradientStop Color="Red" Offset="1"/> |
||
1597 | </LinearGradientBrush> |
||
1598 | </Label.Background> |
||
1599 | </Label> |
||
1600 | </Grid> |
||
1601 | </Window> |