Subversion Repositories Projects

Rev

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"
2401 - 10
        xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
2287 - 11
        x:Class="MKLiveView.MainWindow"
12
        mc:Ignorable="d"
13
        Title="MK LiveView 1.0" Height="686" Width="1017" Icon="MK.ico"
2379 - 14
        DataContext="{Binding RelativeSource={RelativeSource Self}}" Loaded="Window_Loaded" Closing="Window_Closing" Closed="Window_Closed">
2287 - 15
    <Window.Resources>
2313 - 16
        <wpConverter:waypointsConverter x:Key="wpConvert" />
17
 
2287 - 18
        <BooleanToVisibilityConverter x:Key="BooleanToVisibility" />
19
        <LinearGradientBrush x:Key="ActiveItemBrush" EndPoint="0,1" StartPoint="0,0">
20
            <GradientStop Color="#FFC6F5FF"/>
21
            <GradientStop Color="#FFB6E8FF" Offset="0.18"/>
22
            <GradientStop Color="#FF98CBF5" Offset="0.389"/>
23
            <GradientStop Color="#FF9FD3FF" Offset="1"/>
24
        </LinearGradientBrush>
25
        <LinearGradientBrush x:Key="PressedItemBrush" EndPoint="0,1" StartPoint="0,0">
26
            <GradientStop Color="#FFFFEAC6"/>
27
            <GradientStop Color="#FFFFD99B" Offset="0.18"/>
28
            <GradientStop Color="#FFFFD07F" Offset="0.39"/>
29
            <GradientStop Color="#FFFFC961" Offset="1"/>
30
        </LinearGradientBrush>
2401 - 31
        <Style x:Key="ButtonWithoutEffectStyle" TargetType="{x:Type Button}">
2287 - 32
            <Setter Property="Background" Value="Transparent" />
33
            <Setter Property="Template">
34
                <Setter.Value>
2401 - 35
                    <ControlTemplate TargetType="{x:Type Button}">
2287 - 36
                        <Grid Background="{TemplateBinding Background}">
37
                            <ContentPresenter />
2401 - 38
                            <Border x:Name="border"
39
        						BorderThickness="0"
40
        						Padding="4,2"
41
        						BorderBrush="#FFE4E4E4"
42
        						CornerRadius="0"
43
        						Background="{TemplateBinding Background}">
2287 - 44
                                <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
45
                            </Border>
46
                        </Grid>
47
 
48
                    </ControlTemplate>
49
                </Setter.Value>
50
            </Setter>
51
        </Style>
52
        <Style TargetType="{x:Type DataGridColumnHeader}">
53
            <Setter Property="Background" Value="Transparent" />
54
            <Setter Property="Foreground" Value="#FFFFFFFF" />
55
        </Style>
56
        <Style TargetType="{x:Type DataGridCell}">
57
            <Setter Property="Background" Value="Transparent" />
58
            <Setter Property="Foreground" Value="#FFFFFFFF" />
59
        </Style>
60
        <Style TargetType="{x:Type DataGridRow}">
61
            <Setter Property="Background" Value="Transparent" />
62
            <Setter Property="Foreground" Value="#FFFFFFFF" />
63
        </Style>
64
        <Style TargetType="{x:Type DataGridRowHeader}">
65
            <Setter Property="Background" Value="Transparent" />
66
        </Style>
67
        <Style x:Key="CanvasVisibility" TargetType="{x:Type Canvas}">
68
            <Style.Triggers>
2401 - 69
                <DataTrigger Binding="{Binding Tag.IsChecked, RelativeSource={RelativeSource Self}}" Value="False">
70
                    <Setter Property="Visibility" Value="Collapsed" />
2287 - 71
                </DataTrigger>
72
            </Style.Triggers>
73
        </Style>
2401 - 74
        <Style x:Key="GridVisibility" TargetType="{x:Type Grid}">
75
            <Style.Triggers>
76
                <DataTrigger Binding="{Binding Tag.IsChecked, RelativeSource={RelativeSource Self}}" Value="False">
77
                    <Setter Property="Visibility" Value="Collapsed" />
78
                </DataTrigger>
79
            </Style.Triggers>
80
        </Style>
2287 - 81
 
82
        <SolidColorBrush x:Key="SliderThumb.Static.Foreground" Color="#FFE5E5E5"/>
83
        <SolidColorBrush x:Key="SliderThumb.MouseOver.Background" Color="#FFDCECFC"/>
84
        <SolidColorBrush x:Key="SliderThumb.MouseOver.Border" Color="#FF7Eb4EA"/>
85
        <SolidColorBrush x:Key="SliderThumb.Pressed.Background" Color="#FFDAECFC"/>
86
        <SolidColorBrush x:Key="SliderThumb.Pressed.Border" Color="#FF569DE5"/>
87
        <SolidColorBrush x:Key="SliderThumb.Disabled.Background" Color="#FFF0F0F0"/>
88
        <SolidColorBrush x:Key="SliderThumb.Disabled.Border" Color="#FFD9D9D9"/>
89
        <SolidColorBrush x:Key="SliderThumb.Static.Background" Color="#FFF0F0F0"/>
90
        <SolidColorBrush x:Key="SliderThumb.Static.Border" Color="#FFACACAC"/>
91
        <ControlTemplate x:Key="SliderThumbHorizontalTop" TargetType="{x:Type Thumb}">
92
            <Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center">
93
                <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"/>
94
            </Grid>
95
            <ControlTemplate.Triggers>
96
                <Trigger Property="IsMouseOver" Value="true">
97
                    <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/>
98
                    <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/>
99
                </Trigger>
100
                <Trigger Property="IsDragging" Value="true">
101
                    <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/>
102
                    <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/>
103
                </Trigger>
104
                <Trigger Property="IsEnabled" Value="false">
105
                    <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/>
106
                    <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/>
107
                </Trigger>
108
            </ControlTemplate.Triggers>
109
        </ControlTemplate>
110
        <ControlTemplate x:Key="SliderThumbHorizontalBottom" TargetType="{x:Type Thumb}">
111
            <Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center">
112
                <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"/>
113
            </Grid>
114
            <ControlTemplate.Triggers>
115
                <Trigger Property="IsMouseOver" Value="true">
116
                    <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/>
117
                    <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/>
118
                </Trigger>
119
                <Trigger Property="IsDragging" Value="true">
120
                    <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/>
121
                    <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/>
122
                </Trigger>
123
                <Trigger Property="IsEnabled" Value="false">
124
                    <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/>
125
                    <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/>
126
                </Trigger>
127
            </ControlTemplate.Triggers>
128
        </ControlTemplate>
129
        <SolidColorBrush x:Key="SliderThumb.Track.Border" Color="#FFD6D6D6"/>
130
        <SolidColorBrush x:Key="SliderThumb.Track.Background" Color="#FFE7EAEA"/>
131
        <Style x:Key="RepeatButtonTransparent" TargetType="{x:Type RepeatButton}">
132
            <Setter Property="OverridesDefaultStyle" Value="true"/>
133
            <Setter Property="Background" Value="Transparent"/>
134
            <Setter Property="Focusable" Value="false"/>
135
            <Setter Property="IsTabStop" Value="false"/>
136
            <Setter Property="Template">
137
                <Setter.Value>
138
                    <ControlTemplate TargetType="{x:Type RepeatButton}">
139
                        <Rectangle Fill="{TemplateBinding Background}" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}"/>
140
                    </ControlTemplate>
141
                </Setter.Value>
142
            </Setter>
143
        </Style>
144
        <ControlTemplate x:Key="SliderThumbHorizontalDefault" TargetType="{x:Type Thumb}">
145
            <Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center">
2437 - 146
                <!--<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"/>-->
147
                <Ellipse x:Name="grip"  Fill="{StaticResource SliderThumb.Static.Background}" Stretch="Fill" SnapsToDevicePixels="True" Stroke="{StaticResource SliderThumb.Static.Border}" StrokeThickness="1" UseLayoutRounding="True" VerticalAlignment="Center" Width="Auto" Height="30" Margin="-15,-5" />
2287 - 148
            </Grid>
149
            <ControlTemplate.Triggers>
150
                <Trigger Property="IsMouseOver" Value="true">
151
                    <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/>
152
                    <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/>
153
                </Trigger>
154
                <Trigger Property="IsDragging" Value="true">
155
                    <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/>
156
                    <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/>
157
                </Trigger>
158
                <Trigger Property="IsEnabled" Value="false">
159
                    <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/>
160
                    <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/>
161
                </Trigger>
162
            </ControlTemplate.Triggers>
163
        </ControlTemplate>
164
        <ControlTemplate x:Key="SliderHorizontal" TargetType="{x:Type Slider}">
165
            <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="True">
166
                <Grid Margin="0,-3,0,3">
167
                    <Grid.RowDefinitions>
168
                        <RowDefinition Height="Auto"/>
169
                        <RowDefinition Height="Auto" MinHeight="{TemplateBinding MinHeight}"/>
170
                        <RowDefinition Height="Auto"/>
171
                    </Grid.RowDefinitions>
172
                    <TickBar x:Name="TopTick" Fill="{TemplateBinding Foreground}" Height="4" Margin="0,0,0,2" Placement="Top" Grid.Row="0" Visibility="Collapsed"/>
173
                    <TickBar x:Name="BottomTick" Fill="{TemplateBinding Foreground}" Height="4" Margin="0,2,0,0" Placement="Bottom" Grid.Row="2" Visibility="Collapsed"/>
174
                    <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">
175
                        <Canvas Margin="-6,-1">
176
                            <Rectangle x:Name="PART_SelectionRange" Fill="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" Height="4.0" Visibility="Hidden"/>
177
                        </Canvas>
178
                    </Border>
179
                    <Track x:Name="PART_Track" Grid.Row="1">
180
                        <Track.DecreaseRepeatButton>
181
                            <RepeatButton Command="{x:Static Slider.DecreaseLarge}" Style="{StaticResource RepeatButtonTransparent}" Margin="0,-3,0.13,3"/>
182
                        </Track.DecreaseRepeatButton>
183
                        <Track.IncreaseRepeatButton>
184
                            <RepeatButton Command="{x:Static Slider.IncreaseLarge}" Style="{StaticResource RepeatButtonTransparent}" Margin="-0.13,-3,0,3"/>
185
                        </Track.IncreaseRepeatButton>
186
                        <Track.Thumb>
187
                            <Thumb x:Name="Thumb" Focusable="False" Height="28" OverridesDefaultStyle="True" Template="{StaticResource SliderThumbHorizontalDefault}" VerticalAlignment="Center" Width="21" Margin="-0.13,0,0.13,0"/>
188
                        </Track.Thumb>
189
                    </Track>
190
                </Grid>
191
            </Border>
192
            <ControlTemplate.Triggers>
193
                <Trigger Property="TickPlacement" Value="TopLeft">
194
                    <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
195
                    <Setter Property="Template" TargetName="Thumb" Value="{StaticResource SliderThumbHorizontalTop}"/>
196
                    <Setter Property="Margin" TargetName="TrackBackground" Value="5,2,5,0"/>
197
                </Trigger>
198
                <Trigger Property="TickPlacement" Value="BottomRight">
199
                    <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
200
                    <Setter Property="Template" TargetName="Thumb" Value="{StaticResource SliderThumbHorizontalBottom}"/>
201
                    <Setter Property="Margin" TargetName="TrackBackground" Value="5,0,5,2"/>
202
                </Trigger>
203
                <Trigger Property="TickPlacement" Value="Both">
204
                    <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
205
                    <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
206
                </Trigger>
207
                <Trigger Property="IsSelectionRangeEnabled" Value="true">
208
                    <Setter Property="Visibility" TargetName="PART_SelectionRange" Value="Visible"/>
209
                </Trigger>
210
                <Trigger Property="IsKeyboardFocused" Value="true">
211
                    <Setter Property="Foreground" TargetName="Thumb" Value="Blue"/>
212
                </Trigger>
213
            </ControlTemplate.Triggers>
214
        </ControlTemplate>
215
        <ControlTemplate x:Key="SliderThumbVerticalLeft" TargetType="{x:Type Thumb}">
216
            <Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center">
217
                <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}"/>
218
            </Grid>
219
            <ControlTemplate.Triggers>
220
                <Trigger Property="IsMouseOver" Value="true">
221
                    <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/>
222
                    <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/>
223
                </Trigger>
224
                <Trigger Property="IsDragging" Value="true">
225
                    <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/>
226
                    <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/>
227
                </Trigger>
228
                <Trigger Property="IsEnabled" Value="false">
229
                    <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/>
230
                    <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/>
231
                </Trigger>
232
            </ControlTemplate.Triggers>
233
        </ControlTemplate>
234
        <ControlTemplate x:Key="SliderThumbVerticalRight" TargetType="{x:Type Thumb}">
235
            <Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center">
236
                <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}"/>
237
            </Grid>
238
            <ControlTemplate.Triggers>
239
                <Trigger Property="IsMouseOver" Value="true">
240
                    <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/>
241
                    <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/>
242
                </Trigger>
243
                <Trigger Property="IsDragging" Value="true">
244
                    <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/>
245
                    <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/>
246
                </Trigger>
247
                <Trigger Property="IsEnabled" Value="false">
248
                    <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/>
249
                    <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/>
250
                </Trigger>
251
            </ControlTemplate.Triggers>
252
        </ControlTemplate>
253
        <ControlTemplate x:Key="SliderThumbVerticalDefault" TargetType="{x:Type Thumb}">
254
            <Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center">
255
                <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}"/>
256
            </Grid>
257
            <ControlTemplate.Triggers>
258
                <Trigger Property="IsMouseOver" Value="true">
259
                    <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/>
260
                    <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/>
261
                </Trigger>
262
                <Trigger Property="IsDragging" Value="true">
263
                    <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/>
264
                    <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/>
265
                </Trigger>
266
                <Trigger Property="IsEnabled" Value="false">
267
                    <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/>
268
                    <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/>
269
                </Trigger>
270
            </ControlTemplate.Triggers>
271
        </ControlTemplate>
272
        <ControlTemplate x:Key="SliderVertical" TargetType="{x:Type Slider}">
273
            <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="True">
274
                <Grid>
275
                    <Grid.ColumnDefinitions>
276
                        <ColumnDefinition Width="Auto"/>
277
                        <ColumnDefinition MinWidth="{TemplateBinding MinWidth}" Width="Auto"/>
278
                        <ColumnDefinition Width="Auto"/>
279
                    </Grid.ColumnDefinitions>
280
                    <TickBar x:Name="TopTick" Grid.Column="0" Fill="{TemplateBinding Foreground}" Margin="0,0,2,0" Placement="Left" Visibility="Collapsed" Width="4"/>
281
                    <TickBar x:Name="BottomTick" Grid.Column="2" Fill="{TemplateBinding Foreground}" Margin="2,0,0,0" Placement="Right" Visibility="Collapsed" Width="4"/>
282
                    <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">
283
                        <Canvas Margin="-1,-6">
284
                            <Rectangle x:Name="PART_SelectionRange" Fill="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" Visibility="Hidden" Width="4.0"/>
285
                        </Canvas>
286
                    </Border>
287
                    <Track x:Name="PART_Track" Grid.Column="1">
288
                        <Track.DecreaseRepeatButton>
289
                            <RepeatButton Command="{x:Static Slider.DecreaseLarge}" Style="{StaticResource RepeatButtonTransparent}"/>
290
                        </Track.DecreaseRepeatButton>
291
                        <Track.IncreaseRepeatButton>
292
                            <RepeatButton Command="{x:Static Slider.IncreaseLarge}" Style="{StaticResource RepeatButtonTransparent}"/>
293
                        </Track.IncreaseRepeatButton>
294
                        <Track.Thumb>
295
                            <Thumb x:Name="Thumb" Focusable="False" Height="11" OverridesDefaultStyle="True" Template="{StaticResource SliderThumbVerticalDefault}" VerticalAlignment="Top" Width="18"/>
296
                        </Track.Thumb>
297
                    </Track>
298
                </Grid>
299
            </Border>
300
            <ControlTemplate.Triggers>
301
                <Trigger Property="TickPlacement" Value="TopLeft">
302
                    <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
303
                    <Setter Property="Template" TargetName="Thumb" Value="{StaticResource SliderThumbVerticalLeft}"/>
304
                    <Setter Property="Margin" TargetName="TrackBackground" Value="2,5,0,5"/>
305
                </Trigger>
306
                <Trigger Property="TickPlacement" Value="BottomRight">
307
                    <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
308
                    <Setter Property="Template" TargetName="Thumb" Value="{StaticResource SliderThumbVerticalRight}"/>
309
                    <Setter Property="Margin" TargetName="TrackBackground" Value="0,5,2,5"/>
310
                </Trigger>
311
                <Trigger Property="TickPlacement" Value="Both">
312
                    <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
313
                    <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
314
                </Trigger>
315
                <Trigger Property="IsSelectionRangeEnabled" Value="true">
316
                    <Setter Property="Visibility" TargetName="PART_SelectionRange" Value="Visible"/>
317
                </Trigger>
318
                <Trigger Property="IsKeyboardFocused" Value="true">
319
                    <Setter Property="Foreground" TargetName="Thumb" Value="Blue"/>
320
                </Trigger>
321
            </ControlTemplate.Triggers>
322
        </ControlTemplate>
323
        <Style x:Key="TouchSliderStyle" TargetType="{x:Type Slider}">
324
            <Setter Property="Stylus.IsPressAndHoldEnabled" Value="false"/>
325
            <Setter Property="Background" Value="Transparent"/>
326
            <Setter Property="BorderBrush" Value="Transparent"/>
327
            <Setter Property="Foreground" Value="{StaticResource SliderThumb.Static.Foreground}"/>
328
            <Setter Property="Template" Value="{StaticResource SliderHorizontal}"/>
329
            <Style.Triggers>
330
                <Trigger Property="Orientation" Value="Vertical">
331
                    <Setter Property="Template" Value="{StaticResource SliderVertical}"/>
332
                </Trigger>
333
            </Style.Triggers>
334
        </Style>
335
        <Storyboard x:Key="VoltageCritAnim" Duration="0:0:1" RepeatBehavior="Forever">
336
            <ColorAnimationUsingKeyFrames
2401 - 337
        		Storyboard.TargetName="rectTopVoltage"
338
        		Storyboard.TargetProperty="Fill.(SolidColorBrush.Color)">
2287 - 339
                <DiscreteColorKeyFrame KeyTime="0:0:0" Value="Red" />
340
                <DiscreteColorKeyFrame KeyTime="0:0:0.5" Value="Transparent" />
341
            </ColorAnimationUsingKeyFrames>
342
        </Storyboard>
2291 - 343
        <Storyboard x:Key="SatFixLostAnim" Duration="0:0:1" RepeatBehavior="Forever">
344
            <ColorAnimationUsingKeyFrames
2401 - 345
        		Storyboard.TargetName="tbTopSats"
346
        		Storyboard.TargetProperty="Background.(SolidColorBrush.Color)">
2291 - 347
                <DiscreteColorKeyFrame KeyTime="0:0:0" Value="Red" />
348
                <DiscreteColorKeyFrame KeyTime="0:0:0.5" Value="Transparent" />
349
            </ColorAnimationUsingKeyFrames>
350
        </Storyboard>
351
        <Storyboard x:Key="MagneticFieldCritAnim" Duration="0:0:1" RepeatBehavior="Forever">
352
            <ColorAnimationUsingKeyFrames
2401 - 353
        		Storyboard.TargetName="tbTopEarthMag"
354
        		Storyboard.TargetProperty="Background.(SolidColorBrush.Color)">
2291 - 355
                <DiscreteColorKeyFrame KeyTime="0:0:0" Value="Red" />
356
                <DiscreteColorKeyFrame KeyTime="0:0:0.5" Value="Transparent" />
357
            </ColorAnimationUsingKeyFrames>
358
        </Storyboard>
359
        <Storyboard x:Key="DistanceCritAnim" Duration="0:0:1" RepeatBehavior="Forever">
360
            <ColorAnimationUsingKeyFrames
2401 - 361
        		Storyboard.TargetName="tbTopDistanceHP"
362
        		Storyboard.TargetProperty="Background.(SolidColorBrush.Color)">
2291 - 363
                <DiscreteColorKeyFrame KeyTime="0:0:0" Value="Red" />
364
                <DiscreteColorKeyFrame KeyTime="0:0:0.5" Value="Transparent" />
365
            </ColorAnimationUsingKeyFrames>
366
        </Storyboard>
367
        <Storyboard x:Key="RCCritAnim" Duration="0:0:1" RepeatBehavior="Forever">
368
            <ColorAnimationUsingKeyFrames
2401 - 369
        		Storyboard.TargetName="tbTopRC"
370
        		Storyboard.TargetProperty="Background.(SolidColorBrush.Color)">
2291 - 371
                <DiscreteColorKeyFrame KeyTime="0:0:0" Value="Red" />
372
                <DiscreteColorKeyFrame KeyTime="0:0:0.5" Value="Transparent" />
373
            </ColorAnimationUsingKeyFrames>
374
        </Storyboard>
2287 - 375
        <Style x:Key="HideSwitchNCLabel" TargetType="{x:Type Label}">
376
            <Setter Property="Visibility" Value="Collapsed" />
377
            <Style.Triggers>
2429 - 378
                <DataTrigger Binding="{Binding Tag.Text}" Value="FC">
2287 - 379
                    <Setter Property="Visibility" Value="Visible" />
380
                </DataTrigger>
381
            </Style.Triggers>
382
        </Style>
383
        <Style x:Key="HideSwitchNCButton" TargetType="{x:Type Button}">
384
            <Setter Property="Visibility" Value="Hidden" />
385
            <Style.Triggers>
2429 - 386
                <DataTrigger Binding="{Binding Tag.Text}" Value="FC">
2287 - 387
                    <Setter Property="Visibility" Value="Visible" />
388
                </DataTrigger>
389
            </Style.Triggers>
390
        </Style>
391
    </Window.Resources>
392
    <Grid>
2434 - 393
        <Grid x:Name="GridGMapControl" PreviewMouseLeftButtonDown="GridGMapControl_PreviewMouseLeftButtonDown">
2287 - 394
            <WindowsPresentation:GMapControl x:Name="MainMap" Loaded="MainMap_Loaded" OnPositionChanged="MainMap_OnPositionChanged" OnMapZoomChanged="MainMap_OnMapZoomChanged" StylusDown="MainMap_StylusDown" StylusUp="MainMap_StylusUp" StylusMove="MainMap_StylusMove"/>
395
        </Grid>
396
        <Grid>
397
            <Grid.LayoutTransform>
398
                <ScaleTransform
2401 - 399
					CenterX="0"
400
					CenterY="0"
401
					ScaleX="{Binding Value, ElementName=UIScaleSlider}"
402
					ScaleY="{Binding Value, ElementName=UIScaleSlider}"
2287 - 403
                />
404
            </Grid.LayoutTransform>
2399 - 405
 
2287 - 406
            <Grid x:Name="GridTop" Height="36" VerticalAlignment="Top" Background="#7F000000">
407
                <Grid.LayoutTransform>
408
                    <ScaleTransform
2401 - 409
						CenterX="0"
410
						CenterY="0"
411
						ScaleX="{Binding Value, ElementName=UIScaleTopSlider}"
412
						ScaleY="{Binding Value, ElementName=UIScaleTopSlider}"
2287 - 413
                />
414
                </Grid.LayoutTransform>
415
 
416
                <!--<Rectangle x:Name="rctConnection" Fill="#FFF4F4F5" Height="16" Margin="0,10,7,0" Stroke="Black" VerticalAlignment="Top" HorizontalAlignment="Right" Width="15"/>-->
417
                <StackPanel Orientation="Horizontal" Margin="0,0,115,0">
418
                    <Canvas Margin="2,3,2,5" Width="95" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowVoltage}">
419
                        <Rectangle x:Name="rectTopVoltage" HorizontalAlignment="Left" Height="28" Stroke="#FFCFCECE" VerticalAlignment="Top" Width="89" StrokeThickness="3" Fill="#00000000"/>
420
                        <Rectangle Fill="#FFE8E8FF" HorizontalAlignment="Left" Height="13" Stroke="#FFCFCECE" VerticalAlignment="Top" Width="6" StrokeThickness="2" Canvas.Left="89" Canvas.Top="8"/>
421
                        <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 - 422
                        <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 - 423
                    </Canvas>
2309 - 424
                    <Canvas Margin="1,2,2,3" Width="94" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowCapacity}" ToolTip="capacity used">
2291 - 425
                        <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 - 426
                        <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"/>
427
                    </Canvas>
2309 - 428
                    <Canvas Margin="1,2,2,3" Width="72" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowCurrent}" ToolTip="Current">
429
                        <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 - 430
                        <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"/>
431
                    </Canvas>
2309 - 432
                    <Canvas Margin="1,2,2,3" Width="94" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowFlightTime}" ToolTip="flight time since take off">
433
                        <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 - 434
                        <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"/>
435
                    </Canvas>
436
                    <Canvas Margin="1,2,2,3" Width="84" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowDistanceHP}">
437
                        <Rectangle HorizontalAlignment="Right" Width="84" Stroke="#FFE4E4E4" StrokeThickness="0.5" Height="31">
438
                            <Rectangle.Style>
439
                                <Style TargetType="{x:Type Rectangle}">
440
                                    <Style.Triggers>
441
                                        <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnTopHome}" Value="True">
442
                                            <Setter Property="Fill" Value="{DynamicResource ActiveItemBrush}"/>
443
                                        </DataTrigger>
444
                                    </Style.Triggers>
445
                                </Style>
446
                            </Rectangle.Style>
447
                        </Rectangle>
2291 - 448
                        <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"/>
449
                        <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 - 450
                        <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"/>
451
                    </Canvas>
2309 - 452
                    <Canvas Margin="1,2,2,3" Width="61" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowHeight}" ToolTip="height">
453
                        <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 - 454
                        <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"/>
455
                    </Canvas>
2309 - 456
                    <Canvas Margin="1,2,2,1" Width="95" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowSpeed}" ToolTip="groundspeed">
2291 - 457
                        <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 - 458
                        <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"/>
459
                    </Canvas>
2309 - 460
                    <Canvas Margin="0,2,2,0" Width="83" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowMF}" ToolTip="earth magnetic field">
2291 - 461
                        <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 - 462
                        <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"/>
463
                    </Canvas>
2309 - 464
                    <Canvas Margin="1,2,2,3" Width="56" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowSatellites}" ToolTip="Satellites">
2291 - 465
                        <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 - 466
                        <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"/>
467
                    </Canvas>
2309 - 468
                    <Canvas Margin="1,2,2,2.4" Width="62" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowRC}" ToolTip="RC quality level (200 max)">
2291 - 469
                        <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 - 470
                        <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"/>
471
                    </Canvas>
472
                </StackPanel>
473
                <Canvas Margin="0,2,42,3" Width="70" HorizontalAlignment="Right">
474
                    <Rectangle HorizontalAlignment="Right" Width="69" Stroke="#FFE4E4E4" StrokeThickness="0.5" Height="31">
475
                        <Rectangle.Style>
476
                            <Style TargetType="{x:Type Rectangle}">
477
                                <Style.Triggers>
478
                                    <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnTopConnect}" Value="True">
479
                                        <Setter Property="Fill" Value="{DynamicResource ActiveItemBrush}"/>
480
                                    </DataTrigger>
481
                                </Style.Triggers>
482
                            </Style>
483
                        </Rectangle.Style>
484
                    </Rectangle>
485
                    <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"/>
486
                    <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"/>
487
                    <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"/>
488
                </Canvas>
489
                <Canvas Margin="0,2" HorizontalAlignment="Right" Width="37">
490
                    <Rectangle HorizontalAlignment="Right" Width="34" Stroke="#FFE4E4E4" StrokeThickness="0.5" Height="31">
491
                        <Rectangle.Style>
492
                            <Style TargetType="{x:Type Rectangle}">
493
                                <Style.Triggers>
494
                                    <DataTrigger Binding="{Binding IsMouseOver, ElementName=imageFullscreen}" Value="True">
495
                                        <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
496
                                    </DataTrigger>
497
                                </Style.Triggers>
498
                            </Style>
499
                        </Rectangle.Style>
500
                    </Rectangle>
501
                    <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"/>
502
                </Canvas>
503
            </Grid>
504
            <Grid x:Name="GridSideBar" Background="#66000000" Margin="0,36,0,0" HorizontalAlignment="Left" Width="23">
2309 - 505
                <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 - 506
                    <Label.RenderTransform>
507
                        <TransformGroup>
508
                            <ScaleTransform/>
509
                            <SkewTransform/>
510
                            <RotateTransform Angle="-90"/>
511
                            <TranslateTransform/>
512
                        </TransformGroup>
513
                    </Label.RenderTransform>
514
                    <Label.Style>
515
                        <Style TargetType="{x:Type Label}">
516
                            <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
517
                            <Style.Triggers>
518
                                <Trigger Property="IsMouseOver" Value="True">
519
                                    <Setter Property="Background" Value="{DynamicResource PressedItemBrush}"/>
520
                                </Trigger>
521
                                <DataTrigger Binding="{Binding IsVisible, ElementName=GridData}" Value="True">
522
                                    <Setter Property="Background" Value="{DynamicResource ActiveItemBrush}"/>
523
                                </DataTrigger>
524
                            </Style.Triggers>
525
                        </Style>
526
                    </Label.Style>
527
                </Label>
2309 - 528
                <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 - 529
                    <Label.RenderTransform>
530
                        <TransformGroup>
531
                            <ScaleTransform/>
532
                            <SkewTransform/>
533
                            <RotateTransform Angle="-90"/>
534
                            <TranslateTransform/>
535
                        </TransformGroup>
536
                    </Label.RenderTransform>
537
                    <Label.Style>
538
                        <Style TargetType="{x:Type Label}">
539
                            <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
540
                            <Style.Triggers>
541
                                <Trigger Property="IsMouseOver" Value="True">
542
                                    <Setter Property="Background" Value="{DynamicResource PressedItemBrush}"/>
543
                                </Trigger>
544
                                <DataTrigger Binding="{Binding IsVisible, ElementName=GridSettings}" Value="True">
545
                                    <Setter Property="Background" Value="{DynamicResource ActiveItemBrush}"/>
546
                                </DataTrigger>
547
                            </Style.Triggers>
548
                        </Style>
549
                    </Label.Style>
550
                </Label>
2309 - 551
                <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 - 552
                    <Label.RenderTransform>
553
                        <TransformGroup>
554
                            <ScaleTransform/>
555
                            <SkewTransform/>
556
                            <RotateTransform Angle="-90"/>
557
                            <TranslateTransform/>
558
                        </TransformGroup>
559
                    </Label.RenderTransform>
560
                    <Label.Style>
561
                        <Style TargetType="{x:Type Label}">
562
                            <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
563
                            <Style.Triggers>
564
                                <Trigger Property="IsMouseOver" Value="True">
565
                                    <Setter Property="Background" Value="{DynamicResource PressedItemBrush}"/>
566
                                </Trigger>
567
                                <DataTrigger Binding="{Binding IsVisible, ElementName=GridLog}" Value="True">
568
                                    <Setter Property="Background" Value="{DynamicResource ActiveItemBrush}"/>
569
                                </DataTrigger>
570
                            </Style.Triggers>
571
                        </Style>
572
                    </Label.Style>
573
                </Label>
2309 - 574
                <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 - 575
                    <Label.RenderTransform>
576
                        <TransformGroup>
577
                            <ScaleTransform/>
578
                            <SkewTransform/>
579
                            <RotateTransform Angle="-90"/>
580
                            <TranslateTransform/>
581
                        </TransformGroup>
582
                    </Label.RenderTransform>
583
                    <Label.Style>
584
                        <Style TargetType="{x:Type Label}">
585
                            <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
586
                            <Style.Triggers>
587
                                <Trigger Property="IsMouseOver" Value="True">
588
                                    <Setter Property="Background" Value="{DynamicResource PressedItemBrush}"/>
589
                                </Trigger>
590
                                <DataTrigger Binding="{Binding IsVisible, ElementName=GridWP}" Value="True">
591
                                    <Setter Property="Background" Value="{DynamicResource ActiveItemBrush}"/>
592
                                </DataTrigger>
593
                            </Style.Triggers>
594
                        </Style>
595
                    </Label.Style>
596
                </Label>
2287 - 597
            </Grid>
2432 - 598
            <Grid x:Name="GridData" Background="#7F000000" HorizontalAlignment="Left" Width="204" Margin="23,36,0,0" Visibility="Collapsed" >
2300 - 599
                <TabControl x:Name="tabControl" HorizontalAlignment="Left" Height="619" VerticalAlignment="Top" Width="200" Background="{x:Null}" Margin="2,0,0,0">
2298 - 600
                    <TabItem Header="Analog">
601
                        <Grid>
602
                            <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 - 603
                            <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 - 604
                            <Label x:Name="label6_Copy" Content="Controller:" HorizontalAlignment="Left" Margin="8,6,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/>
605
                            <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 - 606
                            <Label x:Name="label6_Copy3" Content="Voltage" HorizontalAlignment="Left" Margin="6,38,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/>
607
                            <Label x:Name="label6_Copy4" Content="Current" HorizontalAlignment="Left" Margin="6,56,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/>
608
                            <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"/>
609
                            <Label x:Name="label6_Copy5" Content="Capacity" HorizontalAlignment="Left" Margin="6,74,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/>
610
                            <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"/>
611
                            <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"/>
612
                            <Label x:Name="label6_Copy6" Content="Flying time" HorizontalAlignment="Left" Margin="6,95,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/>
613
                            <Label x:Name="label6_Copy7" Content="RC quality" HorizontalAlignment="Left" Margin="6,115,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/>
614
                            <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"/>
615
                            <Label x:Name="label6_Copy8" Content="Mag. field" HorizontalAlignment="Left" Margin="6,136,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/>
616
                            <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"/>
617
                            <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"/>
618
                            <Label x:Name="label6_Copy9" Content="Satellites" HorizontalAlignment="Left" Margin="6,157,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/>
619
                            <Label x:Name="label6_Copy10" Content="Gr. speed" HorizontalAlignment="Left" Margin="6,177,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/>
620
                            <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"/>
621
                            <Label x:Name="label6_Copy11" Content="Altitude" HorizontalAlignment="Left" Margin="6,197,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/>
622
                            <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"/>
623
                            <Label x:Name="label6_Copy12" Content="Heading" HorizontalAlignment="Left" Margin="6,217,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/>
624
                            <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"/>
625
                            <Label x:Name="label6_Copy13" Content="Pitch" HorizontalAlignment="Left" Margin="6,236,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/>
626
                            <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"/>
627
                            <Label x:Name="label6_Copy14" Content="Roll" HorizontalAlignment="Left" Margin="6,255,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/>
628
                            <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"/>
629
                            <Label x:Name="label6_Copy15" Content="Distance HP" HorizontalAlignment="Left" Margin="6,274,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/>
630
                            <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"/>
631
                            <Label x:Name="label6_Copy16" Content="(Distance ???)" HorizontalAlignment="Left" Margin="6,293,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/>
632
                            <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"/>
633
                            <Label x:Name="label6_Copy17" Content="Distance WP" HorizontalAlignment="Left" Margin="6,311,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/>
634
                            <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"/>
635
                            <Label x:Name="label6_Copy19" Content="WP count" HorizontalAlignment="Left" Margin="6,329,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/>
636
                            <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"/>
637
                            <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 - 638
                            <Label x:Name="label6" Content="CRC-Error" Margin="14,0,64,10.04" VerticalAlignment="Bottom" Background="{x:Null}" Foreground="White"/>
639
                            <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}"/>
640
                            <Label x:Name="label6_Copy1" Content="SPI-Error" Margin="14,0,69,25.04" Background="{x:Null}" Foreground="White" Height="26" VerticalAlignment="Bottom"/>
641
                            <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"/>
642
                            <Label x:Name="label6_Copy2" Content="I2C-Error" Margin="14,0,68,40.04" Background="{x:Null}" Foreground="White" Height="26" VerticalAlignment="Bottom"/>
643
                            <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"/>
644
                            <Label x:Name="label6_Copy18" Content="NC-Error" Margin="14,0,68,56.04" Background="{x:Null}" Foreground="White" Height="26" VerticalAlignment="Bottom"/>
645
                            <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"/>
2405 - 646
                            <TextBlock x:Name="tbNCGrSpeed" HorizontalAlignment="Left" Height="23" Margin="110,396,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/>
647
                            <Label x:Name="label6_Copy21" Content="Gr. speed (NC)" HorizontalAlignment="Left" Margin="6,392,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/>
648
                            <TextBlock x:Name="tbHeadingCompass" HorizontalAlignment="Left" Height="23" Margin="110,415,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/>
649
                            <Label x:Name="label6_Copy22" Content="Heading (NC)" HorizontalAlignment="Left" Margin="6,411,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/>
2431 - 650
                            <TextBlock x:Name="tbLiPoCells" HorizontalAlignment="Left" Height="23" Margin="110,433,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/>
651
                            <Label x:Name="label6_Copy23" Content="LipoCells" HorizontalAlignment="Left" Margin="6,429,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/>
2405 - 652
                            <TextBlock x:Name="tbWPMaxRange" HorizontalAlignment="Left" Height="23" Margin="110,370,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/>
653
                            <Label x:Name="label6_Copy24" Content="WP max range" HorizontalAlignment="Left" Margin="6,366,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/>
2431 - 654
                            <TextBlock x:Name="tbCamCtrl" HorizontalAlignment="Left" Height="23" Margin="110,450,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/>
655
                            <Label x:Name="label6_Copy30" Content="CamCtrl" HorizontalAlignment="Left" Margin="6,446,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/>
2298 - 656
 
657
                        </Grid>
658
                    </TabItem>
659
                    <TabItem Header="Status">
660
                        <Grid Margin="0">
661
                            <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"/>
662
                            <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"/>
663
                            <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"/>
664
                            <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"/>
665
                            <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"/>
666
                            <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"/>
667
                            <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"/>
668
                            <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"/>
669
                            <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"/>
670
                            <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"/>
671
                            <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"/>
672
                            <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"/>
673
                            <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"/>
674
                            <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"/>
675
                            <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"/>
676
                            <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"/>
677
                            <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"/>
678
                            <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"/>
679
                            <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"/>
680
                            <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"/>
681
                            <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"/>
682
 
683
                        </Grid>
684
                    </TabItem>
2425 - 685
                    <TabItem Header="Serial">
2349 - 686
                        <Grid>
2350 - 687
                            <GroupBox x:Name="groupBox3" Header="Channel 1" HorizontalAlignment="Left" Height="188" VerticalAlignment="Top" Width="194" Foreground="White" BorderThickness="0.5">
2349 - 688
                                <Grid Margin="0,0,-2,0.04">
2350 - 689
                                    <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"/>
690
                                    <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 - 691
                                        <Label.Style>
692
                                            <Style TargetType="{x:Type Label}">
693
                                                <Style.Triggers>
694
                                                    <DataTrigger Binding="{Binding Value, ElementName=SerChan1ScaleSlider}">
695
                                                        <Setter Property="Content" Value="{Binding Value, ElementName=SerChan1ScaleSlider}"/>
696
                                                    </DataTrigger>
697
                                                </Style.Triggers>
698
                                            </Style>
699
                                        </Label.Style>
700
                                    </Label>
2350 - 701
                                    <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"/>
702
                                    <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"/>
703
                                    <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"/>
704
                                    <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"/>
705
                                    <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"/>
706
                                    <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"/>
707
                                    <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"/>
708
                                    <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 - 709
                                        <Button.Style>
710
                                            <Style TargetType="{x:Type Button}">
711
                                                <Style.Triggers>
2401 - 712
                                                    <DataTrigger Binding="{Binding Text, ElementName=textBoxSerial1_val1}"/>
2349 - 713
                                                </Style.Triggers>
714
                                            </Style>
715
                                        </Button.Style>
716
                                    </Button>
2350 - 717
                                    <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 - 718
                                        <Button.Style>
719
                                            <Style TargetType="{x:Type Button}">
720
                                                <Style.Triggers>
2401 - 721
                                                    <DataTrigger Binding="{Binding Text, ElementName=textBoxSerial1_val2}"/>
2349 - 722
                                                </Style.Triggers>
723
                                            </Style>
724
                                        </Button.Style>
725
                                    </Button>
2350 - 726
                                    <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 - 727
                                        <Button.Style>
728
                                            <Style TargetType="{x:Type Button}">
729
                                                <Style.Triggers>
2401 - 730
                                                    <DataTrigger Binding="{Binding Text, ElementName=textBoxSerial1_val3}"/>
2349 - 731
                                                </Style.Triggers>
732
                                            </Style>
733
                                        </Button.Style>
734
                                    </Button>
735
 
736
                                </Grid>
737
                            </GroupBox>
2350 - 738
                            <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 - 739
                                <Grid Margin="0,0,-2,0.04">
2350 - 740
                                    <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"/>
741
                                    <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 - 742
                                        <Label.Style>
743
                                            <Style TargetType="{x:Type Label}">
744
                                                <Style.Triggers>
745
                                                    <DataTrigger Binding="{Binding Value, ElementName=SerChan2ScaleSlider}">
746
                                                        <Setter Property="Content" Value="{Binding Value, ElementName=SerChan2ScaleSlider}"/>
747
                                                    </DataTrigger>
748
                                                </Style.Triggers>
749
                                            </Style>
750
                                        </Label.Style>
751
                                    </Label>
2350 - 752
                                    <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"/>
753
                                    <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"/>
754
                                    <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"/>
755
                                    <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"/>
756
                                    <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"/>
757
                                    <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"/>
758
                                    <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"/>
759
                                    <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 - 760
                                        <Button.Style>
761
                                            <Style TargetType="{x:Type Button}">
762
                                                <Style.Triggers>
2401 - 763
                                                    <DataTrigger Binding="{Binding Text, ElementName=textBoxSerial1_val1}"/>
2349 - 764
                                                </Style.Triggers>
765
                                            </Style>
766
                                        </Button.Style>
767
                                    </Button>
2350 - 768
                                    <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 - 769
                                        <Button.Style>
770
                                            <Style TargetType="{x:Type Button}">
771
                                                <Style.Triggers>
2401 - 772
                                                    <DataTrigger Binding="{Binding Text, ElementName=textBoxSerial2_val2}"/>
2349 - 773
                                                </Style.Triggers>
774
                                            </Style>
775
                                        </Button.Style>
776
                                    </Button>
2350 - 777
                                    <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 - 778
                                        <Button.Style>
779
                                            <Style TargetType="{x:Type Button}">
780
                                                <Style.Triggers>
2401 - 781
                                                    <DataTrigger Binding="{Binding Text, ElementName=textBoxSerial2_val3}"/>
2349 - 782
                                                </Style.Triggers>
783
                                            </Style>
784
                                        </Button.Style>
785
                                    </Button>
786
 
787
                                </Grid>
788
                            </GroupBox>
2350 - 789
                            <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">
790
                                <Grid Margin="0,0,-2,-12.96">
791
                                    <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"/>
792
                                    <Label x:Name="labelSerChan3" HorizontalAlignment="Left" Margin="157,5,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="24" Content="{Binding Value, ElementName=SerChan3ScaleSlider}">
793
                                        <Label.Style>
794
                                            <Style TargetType="{x:Type Label}">
795
                                                <Style.Triggers>
796
                                                    <DataTrigger Binding="{Binding Value, ElementName=SerChan3ScaleSlider}">
797
                                                        <Setter Property="Content" Value="{Binding Value, ElementName=SerChan3ScaleSlider}"/>
798
                                                    </DataTrigger>
799
                                                </Style.Triggers>
800
                                            </Style>
801
                                        </Label.Style>
802
                                    </Label>
803
                                    <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"/>
804
                                    <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"/>
805
                                    <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"/>
806
                                    <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"/>
807
                                    <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"/>
808
                                    <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"/>
809
                                    <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"/>
810
                                    <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">
811
                                        <Button.Style>
812
                                            <Style TargetType="{x:Type Button}">
813
                                                <Style.Triggers>
814
                                                    <DataTrigger Binding="{Binding Text, ElementName=textBoxSerial3_val1}"/>
815
                                                </Style.Triggers>
816
                                            </Style>
817
                                        </Button.Style>
818
                                    </Button>
819
                                    <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">
820
                                        <Button.Style>
821
                                            <Style TargetType="{x:Type Button}">
822
                                                <Style.Triggers>
823
                                                    <DataTrigger Binding="{Binding Text, ElementName=textBoxSerial3_val2}"/>
824
                                                </Style.Triggers>
825
                                            </Style>
826
                                        </Button.Style>
827
                                    </Button>
828
                                    <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">
829
                                        <Button.Style>
830
                                            <Style TargetType="{x:Type Button}">
831
                                                <Style.Triggers>
832
                                                    <DataTrigger Binding="{Binding Text, ElementName=textBoxSerial3_val3}"/>
833
                                                </Style.Triggers>
834
                                            </Style>
835
                                        </Button.Style>
836
                                    </Button>
2349 - 837
 
2350 - 838
                                </Grid>
839
                            </GroupBox>
2349 - 840
 
2350 - 841
 
2349 - 842
                        </Grid>
843
                    </TabItem>
2425 - 844
                    <TabItem Header="License">
845
                        <Grid>
846
                            <TextBlock x:Name="tbDataLicenseUser" HorizontalAlignment="Left" Height="44" Margin="10,60,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="184" Foreground="White" FontSize="16"/>
847
                            <TextBlock x:Name="tbDataLicenseMail" HorizontalAlignment="Left" Height="23" Margin="10,128,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="184" Foreground="White" FontSize="16"/>
848
                            <Label x:Name="label6_Copy25" Content="User:" HorizontalAlignment="Left" Margin="2,38,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/>
849
                            <Label x:Name="label6_Copy26" Content="Mail:" HorizontalAlignment="Left" Margin="2,104,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/>
850
                            <TextBlock x:Name="tbDataLicenseFeature" HorizontalAlignment="Left" Height="44" Margin="10,175,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="184" Foreground="White" FontSize="16"/>
851
                            <Label x:Name="label6_Copy27" Content="Feature:" HorizontalAlignment="Left" Margin="2,151,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/>
852
                            <TextBlock x:Name="tbDataLicenseExpire" HorizontalAlignment="Left" Height="23" Margin="10,253,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="184" Foreground="White" FontSize="16"/>
853
                            <TextBlock x:Name="tbDataLicenseLicense" HorizontalAlignment="Left" Height="23" Margin="10,304,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="174" Foreground="White" FontSize="16"/>
854
                            <Label x:Name="label6_Copy28" Content="Expire:" HorizontalAlignment="Left" Margin="2,224,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/>
855
                            <Label x:Name="label6_Copy29" Content="License:" HorizontalAlignment="Left" Margin="2,281,0,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" FontSize="14"/>
856
 
857
                        </Grid>
858
                    </TabItem>
2298 - 859
                </TabControl>
2287 - 860
            </Grid>
2419 - 861
            <Grid x:Name="GridSettings" Background="#7B000000" HorizontalAlignment="Left" Width="233" Margin="23,36,0,0" Visibility="Collapsed">
2354 - 862
                <TabControl x:Name="tabControlSettings" HorizontalAlignment="Left" Width="229" Background="{x:Null}" Margin="4,0,0,0">
863
                    <TabItem Header="General" Margin="0,0,5.849,0">
2287 - 864
                        <Grid x:Name="TabGridGeneral">
2401 - 865
                            <wpConverter:SerialPortCtrl x:Name="serialPortCtrl" HorizontalAlignment="Left" Height="256" Margin="11,5,0,0" VerticalAlignment="Top" Width="210"/>
2287 - 866
                            <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">
867
                                <Grid Margin="0,0,-12,-6">
868
                                    <Label x:Name="label" Content="debug values" HorizontalAlignment="Left" Margin="4,13,0,0" VerticalAlignment="Top" Foreground="White" Padding="0"/>
869
                                    <Label x:Name="label_Copy" Content="Nav-Ctrl values" HorizontalAlignment="Left" Margin="4,36,0,0" VerticalAlignment="Top" Foreground="White" Padding="0"/>
870
                                    <Label x:Name="label_Copy1" Content="BL-Ctrl values" HorizontalAlignment="Left" Margin="4,59,0,0" VerticalAlignment="Top" Foreground="White" Padding="0"/>
871
                                    <Label x:Name="label_Copy2" Content="OSD values" HorizontalAlignment="Left" Margin="4,82,0,0" VerticalAlignment="Top" Foreground="White" Padding="0"/>
872
                                    <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"/>
873
                                    <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"/>
874
                                    <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"/>
875
                                    <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"/>
876
                                    <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"/>
877
                                    <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"/>
878
                                    <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"/>
879
                                    <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"/>
880
                                    <Label x:Name="label_Copy3" Content="LiPo Cells" HorizontalAlignment="Left" Margin="-6,121,0,-29.62" VerticalAlignment="Top" Foreground="White" Padding="0" Width="63"/>
881
                                    <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"/>
882
                                    <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"/>
883
                                    <Label x:Name="label_Copy5" Content="Motors" HorizontalAlignment="Left" Margin="111,122,0,-30.62" VerticalAlignment="Top" Foreground="White" Padding="0" Width="51"/>
884
                                    <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"/>
885
                                </Grid>
886
                            </GroupBox>
887
                            <TextBox x:Name="tbSettingsCapa" HorizontalAlignment="Left" Height="21" Margin="74,457,0,0" TextWrapping="Wrap" Text="5000" VerticalAlignment="Top" Width="36" Visibility="Hidden"/>
2429 - 888
                            <Button x:Name="buttonSwitchNC" Content="switch to NC" HorizontalAlignment="Left" Height="49" Margin="48,447,0,0" VerticalAlignment="Top" Width="112" Click="buttonSwitchNC_Click" FontSize="16" Background="#FFF7ACAC" BorderBrush="Red" Visibility="Hidden"/>
2287 - 889
                        </Grid>
890
                    </TabItem>
2354 - 891
                    <TabItem Header="Style" Margin="-6.849,0,-2.022,0">
2287 - 892
                        <Grid x:Name="TabGridStyle">
893
                            <Label x:Name="label_Copy6" Content="Main window scale" HorizontalAlignment="Left" Margin="9,7,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="122"/>
894
                            <Label x:Name="labelUIScale" HorizontalAlignment="Left" Margin="117,7,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="42" Content="{Binding Value, ElementName=UIScaleSlider}">
895
                                <Label.Style>
896
                                    <Style TargetType="{x:Type Label}">
897
                                        <Style.Triggers>
898
                                            <DataTrigger Binding="{Binding Value, ElementName=UIScaleSlider}">
899
                                                <Setter Property="Content" Value="{Binding Value, ElementName=UIScaleSlider}"/>
900
                                            </DataTrigger>
901
                                        </Style.Triggers>
902
                                    </Style>
903
                                </Label.Style>
904
                            </Label>
2295 - 905
                            <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"/>
906
                            <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 - 907
                            <Label x:Name="label_Copy8" Content="Top bar scale" HorizontalAlignment="Left" Margin="14,57,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="95"/>
908
                            <Label x:Name="labelTopBarScale" HorizontalAlignment="Left" Margin="95,57,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="42" Content="{Binding Value, ElementName=UIScaleTopSlider}">
909
                                <Label.Style>
910
                                    <Style TargetType="{x:Type Label}">
911
                                        <Style.Triggers>
912
                                            <DataTrigger Binding="{Binding Value, ElementName=UIScaleTopSlider}">
913
                                                <Setter Property="Content" Value="{Binding Value, ElementName=UIScaleTopSlider}"/>
914
                                            </DataTrigger>
915
                                        </Style.Triggers>
916
                                    </Style>
917
                                </Label.Style>
918
                            </Label>
2295 - 919
                            <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 - 920
                            <Label x:Name="label_Copy9" Content="Motors scale" HorizontalAlignment="Left" Margin="14,95,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="95"/>
921
                            <Label x:Name="labelMotorsScale" HorizontalAlignment="Left" Margin="95,95,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="42" Content="{Binding Value, ElementName=UIScaleMotorsSlider}">
922
                                <Label.Style>
923
                                    <Style TargetType="{x:Type Label}">
924
                                        <Style.Triggers>
925
                                            <DataTrigger Binding="{Binding Value, ElementName=UIScaleMotorsSlider}">
926
                                                <Setter Property="Content" Value="{Binding Value, ElementName=UIScaleMotorsSlider}"/>
927
                                            </DataTrigger>
928
                                        </Style.Triggers>
929
                                    </Style>
930
                                </Label.Style>
931
                            </Label>
2419 - 932
                            <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" ValueChanged="UIScaleOSDSlider_ValueChanged"/>
2287 - 933
                            <Label x:Name="label_Copy10" Content="OSD scale" HorizontalAlignment="Left" Margin="14,131,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="95"/>
934
                            <Label x:Name="labelOSDScale" HorizontalAlignment="Left" Margin="95,131,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="42" Content="{Binding Value, ElementName=UIScaleOSDSlider}">
935
                                <Label.Style>
936
                                    <Style TargetType="{x:Type Label}">
937
                                        <Style.Triggers>
938
                                            <DataTrigger Binding="{Binding Value, ElementName=UIScaleOSDSlider}">
939
                                                <Setter Property="Content" Value="{Binding Value, ElementName=UIScaleOSDSlider}"/>
940
                                            </DataTrigger>
941
                                        </Style.Triggers>
942
                                    </Style>
943
                                </Label.Style>
944
                            </Label>
2295 - 945
                            <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 - 946
                            <Label x:Name="label_Copy11" Content="LOG scale" HorizontalAlignment="Left" Margin="14,167,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="95"/>
947
                            <Label x:Name="labelLOGScale" HorizontalAlignment="Left" Margin="95,167,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="42" Content="{Binding Value, ElementName=UIScaleLOGSlider}">
948
                                <Label.Style>
949
                                    <Style TargetType="{x:Type Label}">
950
                                        <Style.Triggers>
951
                                            <DataTrigger Binding="{Binding Value, ElementName=UIScaleLOGSlider}">
952
                                                <Setter Property="Content" Value="{Binding Value, ElementName=UIScaleLOGSlider}"/>
953
                                            </DataTrigger>
954
                                        </Style.Triggers>
955
                                    </Style>
956
                                </Label.Style>
957
                            </Label>
2295 - 958
                            <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 - 959
                            <Label x:Name="label_Copy12" Content="Horizon scale" HorizontalAlignment="Left" Margin="14,203,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="95"/>
960
                            <Label x:Name="labelHorizonScale" HorizontalAlignment="Left" Margin="95,203,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="42" Content="{Binding Value, ElementName=UIScaleHorizonSlider}">
961
                                <Label.Style>
962
                                    <Style TargetType="{x:Type Label}">
963
                                        <Style.Triggers>
964
                                            <DataTrigger Binding="{Binding Value, ElementName=UIScaleHorizonSlider}">
965
                                                <Setter Property="Content" Value="{Binding Value, ElementName=UIScaleHorizonSlider}"/>
966
                                            </DataTrigger>
967
                                        </Style.Triggers>
968
                                    </Style>
969
                                </Label.Style>
970
                            </Label>
2354 - 971
                            <Button x:Name="buttonUIScaleReset" Content="Reset" HorizontalAlignment="Left" Margin="14,248,0,0" VerticalAlignment="Top" Width="95" Click="buttonUIScaleReset_Click" Height="29"/>
2372 - 972
                            <GroupBox x:Name="groupBox1" Header="Topbar items" Margin="14,323,10,0" Foreground="White" BorderThickness="0.5" Height="197" VerticalAlignment="Top">
2287 - 973
                                <Grid Margin="0,0,0,0">
974
                                    <CheckBox x:Name="chkBoxTopBarShowVoltage" Content="Voltage" Foreground="White" Margin="10,10,106,0" IsChecked="True" Height="18" VerticalAlignment="Top" />
975
                                    <CheckBox x:Name="chkBoxTopBarShowCapacity" Content="Capacity" Foreground="White" Margin="10,26,106,0" IsChecked="True" Height="18" VerticalAlignment="Top" />
976
                                    <CheckBox x:Name="chkBoxTopBarShowCurrent" Content="Current" Foreground="White" Margin="10,42,106,0" IsChecked="True" Height="18" VerticalAlignment="Top" />
977
                                    <CheckBox x:Name="chkBoxTopBarShowFlightTime" Content="FlightTime" Foreground="White" Margin="10,58,82,0" IsChecked="True" Height="18" VerticalAlignment="Top" />
978
                                    <CheckBox x:Name="chkBoxTopBarShowDistanceHP" Content="Distance Home" Foreground="White" Margin="10,75,70,0" IsChecked="True" Height="18" VerticalAlignment="Top" />
979
                                    <CheckBox x:Name="chkBoxTopBarShowHeight" Content="Height" Foreground="White" Margin="10,92,70,0" IsChecked="True" Height="18" VerticalAlignment="Top" />
980
                                    <CheckBox x:Name="chkBoxTopBarShowSpeed" Content="GroundSpeed" Foreground="White" Margin="10,108,70,0" IsChecked="True" Height="18" VerticalAlignment="Top" />
981
                                    <CheckBox x:Name="chkBoxTopBarShowMF" Content="Magnetic field" Foreground="White" Margin="10,124,70,-2" IsChecked="True" Height="18" VerticalAlignment="Top" />
982
                                    <CheckBox x:Name="chkBoxTopBarShowSatellites" Content="Satellites" Foreground="White" Margin="10,141,70,0" IsChecked="True" Height="18" VerticalAlignment="Top" />
983
                                    <CheckBox x:Name="chkBoxTopBarShowRC" Content="RC quality" Foreground="White" Margin="10,157,70,0" IsChecked="True" Height="18" VerticalAlignment="Top" />
984
                                </Grid>
985
                            </GroupBox>
2372 - 986
                            <CheckBox x:Name="chkBoxShowHorizon" Content="Show Horizon/Heading" Foreground="White" Margin="14,529,64,0" IsChecked="True" Height="18" VerticalAlignment="Top" />
2401 - 987
                            <CheckBox x:Name="chkBoxSaveFullScreenState" Content="save fullscreen&#xA;scalings" Foreground="White" Margin="119,285,0,0" IsChecked="True" Height="33" VerticalAlignment="Top" VerticalContentAlignment="Center" Click="chkBoxSaveFullScreenState_Click" />
2354 - 988
                            <CheckBox x:Name="chkBoxSaveNormalState" Content="save normal&#xA;window scalings" Foreground="White" Margin="6,285,106,0" IsChecked="True" Height="33" VerticalAlignment="Top" VerticalContentAlignment="Center" Click="chkBoxSaveNormalState_Click" />
2287 - 989
                        </Grid>
990
                    </TabItem>
2354 - 991
                    <TabItem Header="Map" Height="20" VerticalAlignment="Top" Margin="1.022,0,-4,0">
2287 - 992
                        <Grid x:Name="GridMapData" Margin="0,0,-3,-1" HorizontalAlignment="Left" Width="226">
2366 - 993
                            <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"/>
994
                            <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 - 995
                            <TextBox Margin="6,24,10,0" x:Name="textBoxGeo" KeyUp="textBoxGeo_KeyUp" Foreground="Black" Height="22" VerticalAlignment="Top" VerticalContentAlignment="Center" Text="Landshut"/>
996
                            <Button x:Name="buttonGeoCoding" Content="Go To!" HorizontalAlignment="Left" Margin="6,47,0,0" VerticalAlignment="Top" Width="144" Height="26" Click="buttonGeoCoding_Click"/>
2366 - 997
                            <Button Height="27" Margin="0,127,10,0" x:Name="buttonReloadMap" VerticalAlignment="Top" Click="ReloadMap_Click" HorizontalAlignment="Right" Width="71" Content="Reload"/>
998
                            <TextBox Margin="6,78,36,0" x:Name="textBoxLat" Height="23" VerticalAlignment="Top" VerticalContentAlignment="Center" />
999
                            <TextBox Margin="6,102,36,0" x:Name="textBoxLng" Height="22" VerticalAlignment="Top" VerticalContentAlignment="Center" />
1000
                            <Button Height="27" HorizontalAlignment="Left" Margin="6,127,0,0" x:Name="buttonGeoLoc" VerticalAlignment="Top" Width="63" Click="buttonGeoLoc_Click" Content="Go To!"/>
1001
                            <Label Height="23" HorizontalAlignment="Right" Margin="0,78,4,0" x:Name="label2" VerticalAlignment="Top" Width="27" VerticalContentAlignment="Center" Foreground="White" Content="lat"/>
1002
                            <Label Height="29" HorizontalAlignment="Right" Margin="0,99,4,0" x:Name="label3" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="27" Foreground="White" Content="lng"/>
2287 - 1003
 
1004
 
2366 - 1005
                            <ComboBox FontSize="12" Margin="6,174,10,0" x:Name="comboBoxMapType" Height="25" VerticalAlignment="Top" SelectedItem="{Binding MapProvider, ElementName=MainMap}"/>
1006
                            <Label HorizontalAlignment="Right" Margin="0,151,110,0" x:Name="label1" Width="109" Height="28" VerticalAlignment="Top" Foreground="White" Content="Map provider"/>
1007
                            <ComboBox FontSize="12" Height="25" Margin="6,218,10,0" x:Name="comboBoxMode" VerticalAlignment="Top" DropDownClosed="comboBoxMode_DropDownClosed" />
1008
                            <Label Height="32" HorizontalAlignment="Right" Margin="0,194,128,0" x:Name="label5" VerticalAlignment="Top" Width="91" Foreground="White" Content="Caching Mode"/>
1009
                            <Button x:Name="buttonPrefetch" Content="Prefetch cache" HorizontalAlignment="Left" Margin="6,245,0,0" VerticalAlignment="Top" Width="144" Height="26" Click="buttonPrefetch_Click"/>
2287 - 1010
                            <Label HorizontalAlignment="Right" Margin="0,0,99,0" x:Name="label1_Copy" Width="120" Height="29" VerticalAlignment="Top" Foreground="White" Content="Geocoding location"/>
2366 - 1011
                            <TextBox Margin="6,349,36,0" x:Name="textBoxLat_currentPos" VerticalContentAlignment="Center" Height="23" VerticalAlignment="Top" />
1012
                            <TextBox Margin="6,373,36,0" x:Name="textBoxLng_currentPos" VerticalContentAlignment="Center" Height="22" VerticalAlignment="Top" />
1013
                            <Label Height="23" HorizontalAlignment="Right" Margin="0,349,4,0" x:Name="label2_Copy" VerticalAlignment="Top" Width="27" VerticalContentAlignment="Center" Foreground="White" Content="lat"/>
1014
                            <Label Height="29" HorizontalAlignment="Right" Margin="0,370,4,0" x:Name="label3_Copy" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="27" Foreground="White" Content="lng"/>
1015
                            <Label HorizontalAlignment="Right" Margin="0,325,111,0" x:Name="label1_Copy1" Width="109" Foreground="White" Content="Current position" Height="28" VerticalAlignment="Top"/>
1016
                            <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"/>
1017
                            <Label Height="23" HorizontalAlignment="Right" Margin="0,275,139,0" x:Name="label2_Copy1" VerticalAlignment="Top" Width="69" VerticalContentAlignment="Center" Foreground="White" Content="Zoomlevel"/>
2401 - 1018
                            <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"/>
2366 - 1019
                            <Button x:Name="btnSetHP" Content="set Home" Margin="7,400,139,0" Click="btnSetHP_Click" Height="24" VerticalAlignment="Top"/>
1020
                            <Button x:Name="btnClearHP" Content="clear Home" Margin="7,424,139,0" Click="btnClearHP_Click" Height="25" VerticalAlignment="Top" RenderTransformOrigin="0.5,0.6"/>
1021
                            <Button x:Name="btnGotoHP" Content="goto Home" Margin="92,424,54,0" Click="btnGotoHP_Click" Height="25" VerticalAlignment="Top"/>
1022
                            <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"/>
1023
                            <Rectangle HorizontalAlignment="Left" Width="72" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="128,454,0,0" Height="39" VerticalAlignment="Top">
2324 - 1024
                                <Rectangle.Style>
1025
                                    <Style TargetType="{x:Type Rectangle}">
1026
                                        <Style.Triggers>
1027
                                            <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnLoadGPXLog}" Value="True">
1028
                                                <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
1029
                                            </DataTrigger>
1030
                                        </Style.Triggers>
1031
                                    </Style>
1032
                                </Rectangle.Style>
1033
                            </Rectangle>
2366 - 1034
                            <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 - 1035
                                <Button.Background>
1036
                                    <ImageBrush ImageSource="Images/LoadFile.png" Stretch="Uniform"/>
1037
                                </Button.Background>
1038
                            </Button>
2366 - 1039
                            <Label x:Name="label4_Copy8" Content="load GPX-Log" HorizontalAlignment="Left" Margin="122,488,0,0" VerticalAlignment="Top" Width="86" Foreground="White"/>
1040
                            <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 - 1041
                        </Grid>
1042
                    </TabItem>
2354 - 1043
                    <TabItem Header="Thresholds" Height="20" VerticalAlignment="Top" Margin="0" HorizontalAlignment="Left" Width="70">
2287 - 1044
                        <Grid>
2291 - 1045
                            <GroupBox x:Name="groupBox2" Header="Voltage" HorizontalAlignment="Left" Height="109" Margin="10,5,0,0" VerticalAlignment="Top" Width="203" BorderThickness="0.5" Foreground="White">
1046
                                <Grid Margin="0,0,-6,-3.96">
1047
                                    <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"/>
1048
                                    <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 - 1049
                                        <Label.Style>
1050
                                            <Style TargetType="{x:Type Label}">
1051
                                                <Style.Triggers>
1052
                                                    <DataTrigger Binding="{Binding Value, ElementName=sliderThresholdVoltageCrit}">
1053
                                                        <Setter Property="Content" Value="{Binding Value, ElementName=sliderThresholdVoltageCrit}"/>
1054
                                                    </DataTrigger>
1055
                                                </Style.Triggers>
1056
                                            </Style>
1057
                                        </Label.Style>
1058
                                    </Label>
2291 - 1059
                                    <Label x:Name="labelThresholdVoltageCrit_Copy" Content="critical" HorizontalAlignment="Left" Margin="8,41,0,0" VerticalAlignment="Top" Foreground="White"/>
2401 - 1060
                                    <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"/>
2291 - 1061
                                    <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 - 1062
                                        <Label.Style>
1063
                                            <Style TargetType="{x:Type Label}">
1064
                                                <Style.Triggers>
1065
                                                    <DataTrigger Binding="{Binding Value, ElementName=sliderThresholdVoltageWarn}">
1066
                                                        <Setter Property="Content" Value="{Binding Value, ElementName=sliderThresholdVoltageWarn}"/>
1067
                                                    </DataTrigger>
1068
                                                </Style.Triggers>
1069
                                            </Style>
1070
                                        </Label.Style>
1071
                                    </Label>
2291 - 1072
                                    <Label x:Name="labelThresholdVoltageCrit_Copy2" Content="warning" HorizontalAlignment="Left" Margin="8,-2,0,0" VerticalAlignment="Top" Foreground="White"/>
2287 - 1073
 
1074
                                </Grid>
1075
                            </GroupBox>
2291 - 1076
                            <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">
1077
                                <Grid Margin="0,0,-6,-3.96">
1078
                                    <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"/>
1079
                                    <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"/>
1080
                                    <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"/>
1081
                                    <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"/>
1082
                                    <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"/>
1083
                                </Grid>
1084
                            </GroupBox>
1085
                            <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">
1086
                                <Grid Margin="0,0,-6,-3.96">
1087
                                    <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"/>
1088
                                    <Label x:Name="labelThresholdDistanceWarn"  HorizontalAlignment="Left" Margin="86,3,0,0" VerticalAlignment="Top" Foreground="White" Height="25" Width="45" Content="{Binding Value, ElementName=sliderThresholdDistanceWarn}">
1089
                                        <Label.Style>
1090
                                            <Style TargetType="{x:Type Label}">
1091
                                                <Style.Triggers>
1092
                                                    <DataTrigger Binding="{Binding Value, ElementName=sliderThresholdDistanceWarn}">
1093
                                                        <Setter Property="Content" Value="{Binding Value, ElementName=sliderThresholdDistanceWarn}"/>
1094
                                                    </DataTrigger>
1095
                                                </Style.Triggers>
1096
                                            </Style>
1097
                                        </Label.Style>
1098
                                    </Label>
1099
 
1100
                                </Grid>
1101
                            </GroupBox>
2287 - 1102
                        </Grid>
1103
                    </TabItem>
2372 - 1104
                    <TabItem Header="Map elements style" HorizontalAlignment="Left" Height="20" VerticalAlignment="Top" Width="118" Margin="-19,0,0,0">
2354 - 1105
                        <Grid>
2372 - 1106
                            <Border Margin="0,10,0,0" BorderBrush="White" BorderThickness="0.5" CornerRadius="5" HorizontalAlignment="Right" Width="222" Height="263" VerticalAlignment="Top">
2354 - 1107
                                <Grid Margin="-0.5,-0.5,-0.5,1.5">
1108
                                    <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">
1109
                                        <ComboBoxItem Content="red"/>
1110
                                        <ComboBoxItem Content="green"/>
1111
                                        <ComboBoxItem Content="blue"/>
1112
                                        <ComboBoxItem Content="yellow"/>
1113
                                        <ComboBoxItem Content="pink"/>
1114
                                    </ComboBox>
1115
                                    <Label x:Name="label4_Copy3" Content="Failsave color" HorizontalAlignment="Right" Margin="0,137,134,0" VerticalAlignment="Top" Width="80" Foreground="White"/>
1116
                                    <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">
1117
                                        <ComboBoxItem Content="red"/>
1118
                                        <ComboBoxItem Content="green"/>
1119
                                        <ComboBoxItem Content="blue"/>
1120
                                        <ComboBoxItem Content="yellow"/>
1121
                                        <ComboBoxItem Content="pink"/>
1122
                                    </ComboBox>
1123
                                    <Label x:Name="label4_Copy1" Content="WP color" HorizontalAlignment="Right" Margin="0,75,134,0" VerticalAlignment="Top" Width="80" Foreground="White"/>
1124
                                    <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">
1125
                                        <ComboBoxItem Content="red"/>
1126
                                        <ComboBoxItem Content="green"/>
1127
                                        <ComboBoxItem Content="blue"/>
1128
                                        <ComboBoxItem Content="yellow"/>
1129
                                        <ComboBoxItem Content="pink"/>
1130
                                    </ComboBox>
1131
                                    <Label x:Name="label4_Copy2" Content="POI color" HorizontalAlignment="Right" Margin="0,75,28,0" VerticalAlignment="Top" Width="80" Foreground="White"/>
1132
                                    <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">
1133
                                        <ComboBoxItem Content="red"/>
1134
                                        <ComboBoxItem Content="green"/>
1135
                                        <ComboBoxItem Content="blue"/>
1136
                                        <ComboBoxItem Content="yellow"/>
1137
                                        <ComboBoxItem Content="pink"/>
1138
                                    </ComboBox>
1139
                                    <Label x:Name="label4_Copy4" Content="Copter color" HorizontalAlignment="Right" Margin="0,3,134,0" VerticalAlignment="Top" Width="80" Foreground="White"/>
2372 - 1140
                                    <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 - 1141
                                        <ComboBoxItem Content="red"/>
1142
                                        <ComboBoxItem Content="green"/>
1143
                                        <ComboBoxItem Content="blue"/>
1144
                                        <ComboBoxItem Content="yellow"/>
1145
                                        <ComboBoxItem Content="pink"/>
1146
                                    </ComboBox>
2372 - 1147
                                    <Label x:Name="label4_Copy10" Content="Route color" HorizontalAlignment="Right" Margin="0,195,133,0" VerticalAlignment="Top" Width="80" Foreground="White"/>
1148
                                    <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">
1149
                                        <ComboBoxItem Content="red"/>
1150
                                        <ComboBoxItem Content="green"/>
1151
                                        <ComboBoxItem Content="blue"/>
1152
                                        <ComboBoxItem Content="yellow"/>
1153
                                        <ComboBoxItem Content="pink"/>
1154
                                    </ComboBox>
1155
                                    <Label x:Name="label4_Copy31" Content="Landing color" HorizontalAlignment="Right" Margin="0,137,12,0" VerticalAlignment="Top" Width="96" Foreground="White"/>
2385 - 1156
                                    <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">
1157
                                        <ComboBoxItem Content="red"/>
1158
                                        <ComboBoxItem Content="green"/>
1159
                                        <ComboBoxItem Content="blue"/>
1160
                                        <ComboBoxItem Content="yellow"/>
1161
                                        <ComboBoxItem Content="pink"/>
1162
                                    </ComboBox>
1163
                                    <Label x:Name="label4_Copy33" Content="Heading color" HorizontalAlignment="Right" Margin="0,3,12,0" VerticalAlignment="Top" Width="96" Foreground="White"/>
2408 - 1164
                                    <ComboBox x:Name="comboBoxWPMaxRangeColor" Height="33" VerticalAlignment="Top" SelectedIndex="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="16" HorizontalAlignment="Right" Width="95" Margin="0,221,11,0" DropDownClosed="comboBoxWPMaxRangeColor_DropDownClosed">
1165
                                        <ComboBoxItem Content="red"/>
1166
                                        <ComboBoxItem Content="green"/>
1167
                                        <ComboBoxItem Content="blue"/>
1168
                                        <ComboBoxItem Content="yellow"/>
1169
                                        <ComboBoxItem Content="pink"/>
1170
                                    </ComboBox>
1171
                                    <Label x:Name="label4_Copy39" Content="max range color" HorizontalAlignment="Right" Margin="0,195,10,0" VerticalAlignment="Top" Width="97" Foreground="White"/>
2354 - 1172
 
1173
                                </Grid>
1174
                            </Border>
1175
 
1176
                        </Grid>
1177
                    </TabItem>
2287 - 1178
                </TabControl>
1179
            </Grid>
1180
            <Border BorderThickness="0,2,0,0" Height="2" Margin="0,34,0,0" VerticalAlignment="Top" Visibility="Hidden">
1181
                <Border.BorderBrush>
1182
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
1183
                        <GradientStop Color="#FF9DCAF9" Offset="0"/>
1184
                        <GradientStop Color="#FF004385" Offset="1"/>
1185
                    </LinearGradientBrush>
1186
                </Border.BorderBrush>
1187
            </Border>
2401 - 1188
            <ArtificialHorizon:ArtificialHorizon x:Name="ArtHor" Margin="0,0,-22,-29" Height="143" Width="177" HorizontalAlignment="Right" VerticalAlignment="Bottom" Visibility="{Binding IsChecked, Converter={StaticResource BooleanToVisibility}, ElementName=chkBoxShowHorizon}">
2287 - 1189
                <ArtificialHorizon:ArtificialHorizon.RenderTransform>
1190
                    <ScaleTransform
2401 - 1191
						CenterX="136"
1192
						CenterY="117"
1193
						ScaleX="{Binding Value, ElementName=UIScaleHorizonSlider}"
1194
						ScaleY="{Binding Value, ElementName=UIScaleHorizonSlider}"
2287 - 1195
                />
1196
                </ArtificialHorizon:ArtificialHorizon.RenderTransform>
1197
            </ArtificialHorizon:ArtificialHorizon>
2381 - 1198
            <Grid x:Name="GridLog" Margin="257,0,0,0" Background="#66000000" Height="66" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="518">
2287 - 1199
                <Grid.LayoutTransform>
1200
                    <ScaleTransform
2401 - 1201
						CenterX="0"
1202
						CenterY="0"
1203
						ScaleX="{Binding Value, ElementName=UIScaleLOGSlider}"
1204
						ScaleY="{Binding Value, ElementName=UIScaleLOGSlider}"
2287 - 1205
                />
1206
                </Grid.LayoutTransform>
2381 - 1207
                <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" />
1208
                <RichTextBox x:Name="rtfTerminal" Margin="0,0,239,2" HorizontalAlignment="Right" Width="276" Height="60" VerticalAlignment="Bottom" />
2287 - 1209
            </Grid>
2309 - 1210
            <Grid x:Name="GridMotors" Margin="0,38,25,0" Background="#66000000" Height="285" VerticalAlignment="Top" HorizontalAlignment="Right" Width="132" Visibility="Hidden">
2287 - 1211
                <Grid.LayoutTransform>
1212
                    <ScaleTransform
2401 - 1213
						CenterX="0"
1214
						CenterY="0"
1215
						ScaleX="{Binding Value, ElementName=UIScaleMotorsSlider}"
1216
						ScaleY="{Binding Value, ElementName=UIScaleMotorsSlider}"
2287 - 1217
                />
1218
                </Grid.LayoutTransform>
2309 - 1219
                <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 - 1220
                <!--<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"/>-->
1221
            </Grid>
2309 - 1222
            <Grid x:Name="GridOSD" Margin="0,38,330,0" Background="#66000000" Height="127" VerticalAlignment="Top" HorizontalAlignment="Right" Width="257" Visibility="Hidden">
2287 - 1223
                <Grid.LayoutTransform>
1224
                    <ScaleTransform
2401 - 1225
						CenterX="0"
1226
						CenterY="0"
1227
						ScaleX="{Binding Value, ElementName=UIScaleOSDSlider}"
1228
						ScaleY="{Binding Value, ElementName=UIScaleOSDSlider}"
2287 - 1229
                />
1230
                </Grid.LayoutTransform>
1231
                <RichTextBox x:Name="rtfOSD" Height="83" VerticalAlignment="Top" HorizontalAlignment="Left" Width="190" Margin="10,5,0,0" FontFamily="Consolas" FontSize="16" />
1232
                <ComboBox x:Name="cbOSD" HorizontalAlignment="Left" Margin="203,96,0,0" VerticalAlignment="Top" Width="47" Height="27" DropDownClosed="cbOSD_DropDownClosing"/>
1233
                <Button x:Name="btnOSDBackward" Content="Å" HorizontalAlignment="Left" Height="34" Margin="203,44,0,0" VerticalAlignment="Top" Width="47" FontFamily="Wingdings 3" Click="btnOSDBackward_Click"/>
1234
                <Button x:Name="btnOSDForward" Content="Æ" HorizontalAlignment="Left" Height="34" Margin="203,5,0,0" VerticalAlignment="Top" Width="47" FontFamily="Wingdings 3" Click="btnOSDForward_Click"/>
1235
                <Label x:Name="label_Copy7" Content="Page" HorizontalAlignment="Left" Margin="205,78,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="47"/>
1236
                <Button x:Name="btnOSDEnter" Content="" HorizontalAlignment="Left" Height="34" Margin="87,90,0,0" VerticalAlignment="Top" Width="52" Click="btnOSDEnter_Click"/>
1237
                <Button x:Name="btnOSDLeave" Content="" HorizontalAlignment="Left" Height="34" Margin="144,90,0,0" VerticalAlignment="Top" Width="52" Click="btnOSDLeave_Click"/>
1238
            </Grid>
2401 - 1239
            <Label x:Name="lblSimu" Content="Simulation active" Height="22" Margin="0,36,24,0" VerticalAlignment="Top" FontSize="16" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Padding="0" FontFamily="Arial" BorderBrush="#FFF9A40F" BorderThickness="2" Foreground="Black" HorizontalAlignment="Right" Width="135" Visibility="Collapsed">
2381 - 1240
                <Label.Background>
1241
                    <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
1242
                        <GradientStop Color="#FFFFD8C6"/>
1243
                        <GradientStop Color="#FFFFD29B" Offset="0.18"/>
1244
                        <GradientStop Color="#FFFFD07F" Offset="0.391"/>
1245
                        <GradientStop Color="#FFFFA261" Offset="1"/>
1246
                    </LinearGradientBrush>
1247
                </Label.Background>
1248
            </Label>
2437 - 1249
            <Grid x:Name="GridWP" Margin="23,36,25,0" Background="#7F000000" Height="435" VerticalAlignment="Top">
2399 - 1250
                <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" Visibility="Hidden"/>
1251
                <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" Visibility="Hidden"/>
2287 - 1252
                <Label x:Name="label4_Copy" Content="WP Index" HorizontalAlignment="Left" Margin="94,194,0,0" VerticalAlignment="Top" Width="80" Foreground="White" Visibility="Hidden"/>
1253
                <Label x:Name="lblWPIndex" Content="##" HorizontalAlignment="Left" Margin="170,194,0,0" VerticalAlignment="Top" Width="28" Foreground="White" Visibility="Hidden"/>
2437 - 1254
                <Border Margin="7,365,0,0" BorderBrush="White" BorderThickness="0.5" CornerRadius="5" HorizontalAlignment="Left" Width="577" Height="67" VerticalAlignment="Top">
2385 - 1255
                    <Grid Margin="0,0,-1,4">
2399 - 1256
                        <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="104,0,0,-1" Height="40" VerticalAlignment="Bottom">
2324 - 1257
                            <Rectangle.Style>
1258
                                <Style TargetType="{x:Type Rectangle}">
1259
                                    <Style.Triggers>
1260
                                        <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnGetWPList}" Value="True">
1261
                                            <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
1262
                                        </DataTrigger>
1263
                                    </Style.Triggers>
1264
                                </Style>
1265
                            </Rectangle.Style>
1266
                        </Rectangle>
2399 - 1267
                        <Button x:Name="btnGetWPList" Content="" HorizontalAlignment="Left" Height="36" Margin="105,0,0,0" VerticalAlignment="Bottom" Width="92" Click="btnGetWP_Click" ToolTip="Download WP-list from copter" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}">
2324 - 1268
                            <Button.Background>
2361 - 1269
                                <ImageBrush ImageSource="Images/FromCopterToPc1.png" Stretch="Uniform"/>
2324 - 1270
                            </Button.Background>
1271
                        </Button>
2399 - 1272
                        <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="5,0,0,-1" Height="40" VerticalAlignment="Bottom">
2324 - 1273
                            <Rectangle.Style>
1274
                                <Style TargetType="{x:Type Rectangle}">
1275
                                    <Style.Triggers>
1276
                                        <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnSendWPList}" Value="True">
1277
                                            <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
1278
                                        </DataTrigger>
1279
                                    </Style.Triggers>
1280
                                </Style>
1281
                            </Rectangle.Style>
1282
                        </Rectangle>
2399 - 1283
                        <Button x:Name="btnSendWPList" Content="" HorizontalAlignment="Left" Height="36" Margin="6,0,0,0" VerticalAlignment="Bottom" Width="92" ToolTip="Upload WP-list to copter" BorderBrush="#FFBDBDBD" Click="btnSendWPList_Click" Style="{DynamicResource ButtonWithoutEffectStyle}">
2324 - 1284
                            <Button.Background>
2361 - 1285
                                <ImageBrush ImageSource="Images/WPToCopter1.png" Stretch="Uniform"/>
2324 - 1286
                            </Button.Background>
1287
                        </Button>
2399 - 1288
                        <Rectangle HorizontalAlignment="Left" Width="68" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="221,0,0,-1" Height="40" VerticalAlignment="Bottom">
2324 - 1289
                            <Rectangle.Style>
1290
                                <Style TargetType="{x:Type Rectangle}">
1291
                                    <Style.Triggers>
1292
                                        <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnLoadWPLFile}" Value="True">
1293
                                            <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
1294
                                        </DataTrigger>
1295
                                    </Style.Triggers>
1296
                                </Style>
1297
                            </Rectangle.Style>
1298
                        </Rectangle>
2399 - 1299
                        <Button x:Name="btnLoadWPLFile" Content="" HorizontalAlignment="Left" Height="37" Margin="221,0,0,0" VerticalAlignment="Bottom" Width="68" ToolTip="load wp-list from file" BorderBrush="#FFBDBDBD" HorizontalContentAlignment="Center" Click="btnLoadWPLFile_Click" Style="{DynamicResource ButtonWithoutEffectStyle}">
2324 - 1300
                            <Button.Background>
1301
                                <ImageBrush ImageSource="Images/LoadFile.png" Stretch="Uniform"/>
1302
                            </Button.Background>
1303
                        </Button>
2399 - 1304
                        <Label x:Name="label4_Copy5" Content="receive from copter" HorizontalAlignment="Left" Margin="99,0,0,36" VerticalAlignment="Bottom" Width="116" Foreground="White" Height="26"/>
1305
                        <Label x:Name="label4_Copy6" Content="send to copter" HorizontalAlignment="Left" Margin="2,0,0,36" VerticalAlignment="Bottom" Width="86" Foreground="White" Height="26"/>
1306
                        <Label x:Name="label4_Copy7" Content="load file" HorizontalAlignment="Left" Margin="218,0,0,35" VerticalAlignment="Bottom" Width="62" Foreground="White"/>
1307
                        <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="377,0,0,-1" Height="40" VerticalAlignment="Bottom">
2335 - 1308
                            <Rectangle.Style>
1309
                                <Style TargetType="{x:Type Rectangle}">
1310
                                    <Style.Triggers>
1311
                                        <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnClearWPList}" Value="True">
1312
                                            <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
1313
                                        </DataTrigger>
1314
                                    </Style.Triggers>
1315
                                </Style>
1316
                            </Rectangle.Style>
1317
                        </Rectangle>
2399 - 1318
                        <Button x:Name="btnClearWPList" Content="" HorizontalAlignment="Left" Height="36" Margin="377,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 - 1319
                            <Button.Background>
1320
                                <ImageBrush ImageSource="Images/DeleteList.png" Stretch="Uniform"/>
1321
                            </Button.Background>
1322
                        </Button>
2399 - 1323
                        <Label x:Name="label4_Copy11" Content="clear local list" HorizontalAlignment="Left" Margin="373,0,0,35" VerticalAlignment="Bottom" Width="93" Foreground="White"/>
1324
                        <Rectangle HorizontalAlignment="Left" Width="94" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="476,0,0,-1" Height="40" VerticalAlignment="Bottom">
2340 - 1325
                            <Rectangle.Style>
1326
                                <Style TargetType="{x:Type Rectangle}">
1327
                                    <Style.Triggers>
1328
                                        <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnClearCopterList}" Value="True">
1329
                                            <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
1330
                                        </DataTrigger>
1331
                                    </Style.Triggers>
1332
                                </Style>
1333
                            </Rectangle.Style>
1334
                        </Rectangle>
2399 - 1335
                        <Button x:Name="btnClearCopterList" Content="" HorizontalAlignment="Left" Height="36" Margin="478,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 - 1336
                            <Button.Background>
1337
                                <ImageBrush ImageSource="Images/DeleteCopterList.png" Stretch="Uniform"/>
1338
                            </Button.Background>
1339
                        </Button>
2399 - 1340
                        <Label x:Name="label4_Copy12" Content="clear copter list" HorizontalAlignment="Left" Margin="472,0,0,36" VerticalAlignment="Bottom" Width="93" Foreground="White" Height="26"/>
1341
                        <Rectangle HorizontalAlignment="Left" Width="68" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="293,0,0,-1" Height="40" VerticalAlignment="Bottom">
2350 - 1342
                            <Rectangle.Style>
1343
                                <Style TargetType="{x:Type Rectangle}">
1344
                                    <Style.Triggers>
1345
                                        <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnSaveWPLFile}" Value="True">
1346
                                            <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
1347
                                        </DataTrigger>
1348
                                    </Style.Triggers>
1349
                                </Style>
1350
                            </Rectangle.Style>
1351
                        </Rectangle>
2399 - 1352
                        <Button x:Name="btnSaveWPLFile" Content="" HorizontalAlignment="Left" Height="37" Margin="293,0,0,0" VerticalAlignment="Bottom" Width="68" ToolTip="save list to *.wpl file" BorderBrush="#FFBDBDBD" HorizontalContentAlignment="Center" Click="btnSaveWPLFile_Click" Style="{DynamicResource ButtonWithoutEffectStyle}">
2350 - 1353
                            <Button.Background>
1354
                                <ImageBrush ImageSource="Images/SaveFile.png" Stretch="Uniform"/>
1355
                            </Button.Background>
1356
                        </Button>
2399 - 1357
                        <Label x:Name="label4_Copy13" Content="save file" HorizontalAlignment="Left" Margin="290,0,0,35" VerticalAlignment="Bottom" Width="71" Foreground="White"/>
2324 - 1358
                    </Grid>
1359
                </Border>
2437 - 1360
                <DataGrid x:Name="dgvWP" Margin="10,5,10,84" 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 - 1361
                    <DataGrid.Columns>
2437 - 1362
                        <DataGridTextColumn x:Name="dataGridTextColumn" Header="Index" Binding="{Binding Index}"/>
2401 - 1363
                        <DataGridTextColumn Header="Type" Binding="{Binding Type, ConverterParameter=Type, Converter={StaticResource wpConvert}}"/>
1364
                        <DataGridTextColumn Header="Name" Binding="{Binding Name}"/>
1365
                        <DataGridTextColumn Header="Latitude" Binding="{Binding Latitude, ConverterParameter=Latitude, Converter={StaticResource wpConvert}}"/>
1366
                        <DataGridTextColumn Header="Longitude" Binding="{Binding Longitude, ConverterParameter=Longitude, Converter={StaticResource wpConvert}}"/>
1367
                        <DataGridTextColumn Header="Altitude" Binding="{Binding Altitude, ConverterParameter=Altitude, Converter={StaticResource wpConvert}}"/>
1368
                        <DataGridTextColumn Header="Heading" Binding="{Binding Heading, ConverterParameter=Heading, Converter={StaticResource wpConvert}}"/>
1369
                        <DataGridTextColumn Header="Speed" Binding="{Binding Speed, ConverterParameter=Speed, Converter={StaticResource wpConvert}}"/>
1370
                        <DataGridTextColumn Header="ClimbRate" Binding="{Binding ClimbRate, ConverterParameter=ClimbRate, Converter={StaticResource wpConvert}}"/>
1371
                        <DataGridTextColumn Header="Radius" Binding="{Binding Radius, ConverterParameter=Radius, Converter={StaticResource wpConvert}}"/>
1372
                        <DataGridTextColumn Header="HoldTime" Binding="{Binding HoldTime, ConverterParameter=DelayTime, Converter={StaticResource wpConvert}}"/>
1373
                        <DataGridTextColumn Header="AutoTrigger" Binding="{Binding AutoTrigger, ConverterParameter=AutoTrigger, Converter={StaticResource wpConvert}}"/>
1374
                        <DataGridTextColumn Header="CamAngle" Binding="{Binding CamAngle, ConverterParameter=CamAngle, Converter={StaticResource wpConvert}}"/>
1375
                        <DataGridTextColumn Header="Out1Timer" Binding="{Binding Out1Timer}"/>
2313 - 1376
                    </DataGrid.Columns>
1377
                </DataGrid>
2437 - 1378
                <CheckBox x:Name="checkBoxShowWPRoute" Content="show route" HorizontalAlignment="Right" Height="22" Margin="0,361,183,0" VerticalAlignment="Top" Width="110" Foreground="#FFFFFEFE" Click="checkBoxShowWPRoute_Click"/>
1379
                <Label x:Name="label4_Copy9" Content="total distance" HorizontalAlignment="Right" Margin="0,356,51,0" VerticalAlignment="Top" Width="99" Foreground="White" Padding="0" Height="18" HorizontalContentAlignment="Right" VerticalContentAlignment="Center" FontSize="13"/>
1380
                <Label x:Name="lblWPRouteDistance" Content="0 m" HorizontalAlignment="Right" Margin="0,356,4,0" VerticalAlignment="Top" Width="42" Foreground="White" HorizontalContentAlignment="Right" VerticalContentAlignment="Center" Padding="0" FontSize="13"/>
1381
                <Label x:Name="label4_Copy14" Content="/" HorizontalAlignment="Right" Margin="0,405,29,0" VerticalAlignment="Top" Width="7" Foreground="White" Height="20" HorizontalContentAlignment="Right" Padding="0" VerticalContentAlignment="Center" FontSize="13"/>
1382
                <Label x:Name="lblWPCountNC" Content="##" HorizontalAlignment="Right" Margin="0,408,2,0" VerticalAlignment="Top" Width="25" Foreground="White" Padding="0" Height="16" FontSize="13"/>
1383
                <Label x:Name="label4_Copy15" Content="active WP" HorizontalAlignment="Right" Margin="0,405,61,0" VerticalAlignment="Top" Width="65" Foreground="White" Height="21" HorizontalContentAlignment="Right" Padding="0" VerticalContentAlignment="Center" FontSize="13"/>
1384
                <Label x:Name="lblWPIndexNC" Content="##" HorizontalAlignment="Right" Margin="0,408,36,0" VerticalAlignment="Top" Width="25" Foreground="White" HorizontalContentAlignment="Right" Padding="0" Height="16" FontSize="13"/>
2399 - 1385
                <Rectangle x:Name="rectSimulate" HorizontalAlignment="Left" Width="59" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="624,0,0,10" Height="37" VerticalAlignment="Bottom" Visibility="Collapsed">
2376 - 1386
                    <Rectangle.Fill>
1387
                        <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
2398 - 1388
                            <GradientStop Color="#FF9DFFAA"/>
1389
                            <GradientStop Color="#FF5DE094" Offset="0.236"/>
1390
                            <GradientStop Color="#FF5DD6A0" Offset="0.39"/>
2376 - 1391
                            <GradientStop Color="#FF4FCF8F" Offset="1"/>
1392
                        </LinearGradientBrush>
1393
                    </Rectangle.Fill>
1394
                </Rectangle>
2437 - 1395
                <Rectangle HorizontalAlignment="Left" Width="59" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="595,389,0,0" Height="37" VerticalAlignment="Top">
2359 - 1396
                    <Rectangle.Style>
1397
                        <Style TargetType="{x:Type Rectangle}">
1398
                            <Style.Triggers>
2376 - 1399
                                <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnWPSimulateStart}" Value="True">
2359 - 1400
                                    <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
1401
                                </DataTrigger>
1402
                            </Style.Triggers>
1403
                        </Style>
1404
                    </Rectangle.Style>
1405
                </Rectangle>
2437 - 1406
                <Button x:Name="btnWPSimulateStart" Content="" HorizontalAlignment="Left" Height="33" Margin="595,391,0,0" VerticalAlignment="Top" Width="58" ToolTip="Start/stop simulationmode on copter" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnWPSimulateStart_Click">
2359 - 1407
                    <Button.Background>
2376 - 1408
                        <ImageBrush ImageSource="Images/Test.png" Stretch="Uniform"/>
2359 - 1409
                    </Button.Background>
1410
                </Button>
2437 - 1411
                <Label x:Name="label4_Copy32" Content="Simulation" HorizontalAlignment="Left" Margin="590,367,0,0" VerticalAlignment="Top" Width="74" Foreground="White" Height="26"/>
1412
                <Label x:Name="label4_Copy35" Content="distance next WP" HorizontalAlignment="Right" Margin="0,371,51,0" VerticalAlignment="Top" Width="118" Foreground="White" Height="21" HorizontalContentAlignment="Right" Padding="0" VerticalContentAlignment="Center" FontSize="13"/>
1413
                <Label x:Name="lblWPRouteDistanceWP" Content="0 m" HorizontalAlignment="Right" Margin="0,373,4,0" VerticalAlignment="Top" Width="42" Foreground="White" HorizontalContentAlignment="Right" VerticalContentAlignment="Center" Padding="0" FontSize="13"/>
1414
                <Label x:Name="label4_Copy36" Content="hold time" HorizontalAlignment="Right" Margin="0,388,51,0" VerticalAlignment="Top" Width="118" Foreground="White" Height="21" HorizontalContentAlignment="Right" Padding="0" VerticalContentAlignment="Center" FontSize="13"/>
1415
                <Label x:Name="lblWPHoldTime" Content="0 s" HorizontalAlignment="Right" Margin="0,390,10,0" VerticalAlignment="Top" Width="36" Foreground="White" HorizontalContentAlignment="Right" VerticalContentAlignment="Center" Padding="0" FontSize="13"/>
1416
                <CheckBox x:Name="checkBoxShowWPStatus" Content="show statusbar" HorizontalAlignment="Right" Height="22" Margin="0,379,182,0" VerticalAlignment="Top" Width="111" Foreground="#FFFFFEFE" Click="checkBoxShowWPStatus_Click"/>
1417
                <CheckBox x:Name="checkBoxShowWPMaxRange" Content="show max range" HorizontalAlignment="Right" Height="22" Margin="0,397,182,0" VerticalAlignment="Top" Width="111" Foreground="#FFFFFEFE" Click="checkBoxShowWPMaxRange_click"/>
1418
                <CheckBox x:Name="checkBoxAutoShowWPEdit" Content="auto show edit window" HorizontalAlignment="Right" Height="22" Margin="0,415,141,-2" VerticalAlignment="Top" Width="152" Foreground="#FFFFFEFE" Click="checkBoxAutoShowWPEdit_Click" ToolTip="automaticly open the WP-Edit window, when selecting a WP"/>
2287 - 1419
            </Grid>
2309 - 1420
            <Grid x:Name="GridSideBarR" Background="#66000000" Margin="0,36,0,0" HorizontalAlignment="Right" Width="23">
1421
                <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">
1422
                    <Label.RenderTransform>
1423
                        <TransformGroup>
1424
                            <ScaleTransform/>
1425
                            <SkewTransform/>
1426
                            <RotateTransform Angle="90"/>
1427
                            <TranslateTransform/>
1428
                        </TransformGroup>
1429
                    </Label.RenderTransform>
1430
                    <Label.Style>
1431
                        <Style TargetType="{x:Type Label}">
1432
                            <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
1433
                            <Style.Triggers>
1434
                                <Trigger Property="IsMouseOver" Value="True">
1435
                                    <Setter Property="Background" Value="{DynamicResource PressedItemBrush}"/>
1436
                                </Trigger>
1437
                                <DataTrigger Binding="{Binding IsVisible, ElementName=GridMotors}" Value="True">
1438
                                    <Setter Property="Background" Value="{DynamicResource ActiveItemBrush}"/>
1439
                                </DataTrigger>
1440
                            </Style.Triggers>
1441
                        </Style>
1442
                    </Label.Style>
1443
                </Label>
1444
                <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">
1445
                    <Label.RenderTransform>
1446
                        <TransformGroup>
1447
                            <ScaleTransform/>
1448
                            <SkewTransform/>
1449
                            <RotateTransform Angle="90"/>
1450
                            <TranslateTransform/>
1451
                        </TransformGroup>
1452
                    </Label.RenderTransform>
1453
                    <Label.Style>
1454
                        <Style TargetType="{x:Type Label}">
1455
                            <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
1456
                            <Style.Triggers>
1457
                                <Trigger Property="IsMouseOver" Value="True">
1458
                                    <Setter Property="Background" Value="{DynamicResource PressedItemBrush}"/>
1459
                                </Trigger>
1460
                                <DataTrigger Binding="{Binding IsVisible, ElementName=GridOSD}" Value="True">
1461
                                    <Setter Property="Background" Value="{DynamicResource ActiveItemBrush}"/>
1462
                                </DataTrigger>
1463
                            </Style.Triggers>
1464
                        </Style>
1465
                    </Label.Style>
1466
                </Label>
1467
                <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">
1468
                    <TextBox.Resources>
1469
                        <Style TargetType="{x:Type Border}">
1470
                            <Setter Property="CornerRadius" Value="30"/>
1471
                        </Style>
1472
                    </TextBox.Resources>
1473
                </TextBox>
1474
                <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"/>
1475
                <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"/>
1476
                <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"/>
1477
                <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">
1478
                    <TextBox.Resources>
1479
                        <Style TargetType="{x:Type Border}">
1480
                            <Setter Property="CornerRadius" Value="30"/>
1481
                        </Style>
1482
                    </TextBox.Resources>
1483
                </TextBox>
2324 - 1484
                <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"/>
2437 - 1485
                <Label x:Name="labelWPEdit" Content="WP-Edit" Padding="0" RenderTransformOrigin="0.5,0.5" Margin="-25,308,-26,0" HorizontalContentAlignment="Center" VerticalContentAlignment="Stretch" MouseDown="labelWPEdit_MouseDown" FontSize="14" HorizontalAlignment="Left" Width="74" Height="22" VerticalAlignment="Top">
1486
                    <Label.RenderTransform>
1487
                        <TransformGroup>
1488
                            <ScaleTransform/>
1489
                            <SkewTransform/>
1490
                            <RotateTransform Angle="90"/>
1491
                            <TranslateTransform/>
1492
                        </TransformGroup>
1493
                    </Label.RenderTransform>
1494
                    <Label.Style>
1495
                        <Style TargetType="{x:Type Label}">
1496
                            <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
1497
                            <Style.Triggers>
1498
                                <Trigger Property="IsMouseOver" Value="True">
1499
                                    <Setter Property="Background" Value="{DynamicResource PressedItemBrush}"/>
1500
                                </Trigger>
1501
                                <DataTrigger Binding="{Binding IsVisible, ElementName=GridWPEdit}" Value="True">
1502
                                    <Setter Property="Background" Value="{DynamicResource ActiveItemBrush}"/>
1503
                                </DataTrigger>
1504
                            </Style.Triggers>
1505
                        </Style>
1506
                    </Label.Style>
1507
                </Label>
2309 - 1508
            </Grid>
2401 - 1509
            <Grid x:Name="WPStatus" HorizontalAlignment="Left" Height="37" Margin="295,37,0,0" VerticalAlignment="Top" Width="313" Background="#7F000000" Style="{StaticResource GridVisibility}" Tag="{Binding ElementName=checkBoxShowWPStatus}">
1510
                <Canvas Margin="225,2,40,4">
1511
                    <Label x:Name="label4_Copy38" Content="WP" HorizontalAlignment="Center" VerticalAlignment="Top" Width="86" Foreground="White" Height="31" Padding="4,1,1,1" VerticalContentAlignment="Center" FontSize="14" BorderBrush="#FFDBDFE6" BorderThickness="0.5" ToolTip="active WP index"/>
1512
                    <Label x:Name="label4_Copy37" Content="/" HorizontalAlignment="Right" VerticalAlignment="Top" Width="7" Foreground="White" Height="20" HorizontalContentAlignment="Right" Padding="0" VerticalContentAlignment="Center" FontSize="14" Canvas.Left="50" Canvas.Top="5"/>
1513
                    <Label x:Name="lblWPStatusIndexNC" Content="##" HorizontalAlignment="Right" VerticalAlignment="Top" Width="25" Foreground="White" HorizontalContentAlignment="Right" Padding="0" Height="31" FontSize="14" Canvas.Left="25" VerticalContentAlignment="Center"/>
1514
                    <Label x:Name="lblWPStatusCountNC" Content="##" HorizontalAlignment="Right" VerticalAlignment="Center" Width="25" Foreground="White" Padding="0" Height="31" FontSize="14" Canvas.Left="59" VerticalContentAlignment="Center"/>
1515
                </Canvas>
1516
                <Canvas Margin="79,3,189,158" ToolTip="distance next WP">
1517
                    <TextBox x:Name="tbWPStatusDistanceWP" HorizontalAlignment="Left" Height="31" TextWrapping="Wrap" Text="0 m" VerticalAlignment="Top" Width="61" BorderBrush="#FFDBDFE6" FontSize="14" Background="#00000000" Padding="4,1,1,1" Foreground="White" ToolTip="distance next WP" BorderThickness="0.5" AllowDrop="False" IsHitTestVisible="False" IsTabStop="False" IsReadOnly="True" IsUndoEnabled="False" Canvas.Left="-5"/>
1518
                    <ed:LineArrow Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="1" Stroke="White" VerticalAlignment="Bottom" Width="49" EndArrow="StealthArrow" ArrowSize="4" Canvas.Top="25" StrokeThickness="2" Canvas.Left="1"/>
1519
                </Canvas>
1520
                <Canvas Margin="2,3,257,0" ToolTip="hold time">
1521
                    <TextBox x:Name="tbWPStatusHoldTime" HorizontalAlignment="Left" Height="31" TextWrapping="Wrap" Text="0 s" VerticalAlignment="Top" Width="69" 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"/>
1522
                    <Image x:Name="imageFlightTime1" Height="25.583" VerticalAlignment="Top" UseLayoutRounding="False" Source="Images/flighttime.png" HorizontalAlignment="Left" Width="25.375" Canvas.Left="40" Canvas.Top="2.333"/>
1523
                </Canvas>
1524
                <Canvas Margin="161,2,114,4" ToolTip="WP height">
1525
                    <TextBox x:Name="tbWPStatusHeight" 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"/>
1526
                    <Image x:Name="imageFlightTime_Copy1" Height="23" VerticalAlignment="Top" UseLayoutRounding="False" Source="Images/Altitude.png" HorizontalAlignment="Left" Width="8.25" Canvas.Left="48.688" Canvas.Top="4"/>
1527
                </Canvas>
2399 - 1528
            </Grid>
2437 - 1529
            <Grid x:Name="GridWPEdit" Margin="0,38,25,0" Background="#A5000000" Height="617" VerticalAlignment="Top" HorizontalAlignment="Right" Width="305">
1530
                <Label x:Name="lblWPEditAlt" HorizontalAlignment="Right" Margin="0,52,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="50" Content="{Binding Value, ElementName=SliderAlt}" ContentStringFormat="{}{0} m" Height="21" ClipToBounds="True" VerticalContentAlignment="Center">
1531
                    <Label.Style>
1532
                        <Style TargetType="{x:Type Label}">
1533
                            <Style.Triggers>
1534
                                <DataTrigger Binding="{Binding Value, ElementName=SliderAlt}">
1535
                                    <Setter Property="Content" Value="{Binding Value, ElementName=SliderAlt}" />
1536
                                </DataTrigger>
1537
                            </Style.Triggers>
1538
                        </Style>
1539
                    </Label.Style>
1540
                </Label>
1541
                <Slider x:Name="SliderAlt" HorizontalAlignment="Right" Height="29" Margin="0,51,59,0" VerticalAlignment="Top" Width="158" Maximum="254" FontSize="20" Style="{DynamicResource TouchSliderStyle}" LargeChange="1" SmallChange="1" Value="254" IsSnapToTickEnabled="True" />
1542
                <Label x:Name="label4_Copy41" Content="Altitude" HorizontalAlignment="Left" Margin="7,53,0,0" Width="54" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/>
1543
                <Label x:Name="lblWPEditHeading" HorizontalAlignment="Right" Margin="0,96,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="50" Content="{Binding Value, ElementName=SliderHeading}" Height="21" ClipToBounds="True" VerticalContentAlignment="Center">
1544
                    <Label.Style>
1545
                        <Style TargetType="{x:Type Label}">
1546
                            <Setter Property="Visibility" Value="Collapsed" />
1547
                            <Style.Triggers>
1548
                                <DataTrigger Binding="{Binding Value, ElementName=SliderHeading}">
1549
                                    <Setter Property="Content" Value="{Binding Value, ElementName=SliderHeading}"/>
1550
                                </DataTrigger>
1551
                                <DataTrigger Binding="{Binding SelectedIndex,ElementName=cbWPEditHeading}" Value="2">
1552
                                    <Setter Property="Visibility" Value="Visible"/>
1553
                                    <Setter Property="ContentStringFormat" Value="{}{0} °" />
1554
                                </DataTrigger>
1555
                                <DataTrigger Binding="{Binding SelectedIndex,ElementName=cbWPEditHeading}" Value="1">
1556
                                    <Setter Property="Visibility" Value="Visible"/>
1557
                                </DataTrigger>
1558
                            </Style.Triggers>
1559
                        </Style>
1560
                    </Label.Style>
1561
                </Label>
1562
                <Slider x:Name="SliderHeading" HorizontalAlignment="Right" Height="29" Margin="0,95,59,0" VerticalAlignment="Top" Width="158" FontSize="20" LargeChange="1" SmallChange="1" Value="359" IsSnapToTickEnabled="True">
1563
                    <Slider.Style >
1564
                        <Style BasedOn="{StaticResource TouchSliderStyle}" TargetType="{x:Type Slider}">
1565
                            <Setter Property="Visibility" Value="Collapsed" />
1566
                            <Style.Triggers>
1567
                                <DataTrigger Binding="{Binding SelectedIndex,ElementName=cbWPEditHeading}" Value="1">
1568
                                    <Setter Property="Visibility" Value="Visible"/>
1569
                                    <Setter Property="Maximum" Value="99"/>
1570
                                    <Setter Property="Minimum" Value="1"/>
1571
                                </DataTrigger>
1572
                                <DataTrigger Binding="{Binding SelectedIndex,ElementName=cbWPEditHeading}" Value="2">
1573
                                    <Setter Property="Visibility" Value="Visible"/>
1574
                                    <Setter Property="Maximum" Value="359"/>
1575
                                    <Setter Property="Minimum" Value="0"/>
1576
                                </DataTrigger>
1577
                            </Style.Triggers>
1578
                        </Style>
1579
                    </Slider.Style>
1580
                </Slider>
1581
 
1582
                <Label x:Name="label4_Copy42" Content="Heading" HorizontalAlignment="Left" Margin="7,83,0,0" Width="54" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/>
1583
                <ComboBox x:Name="cbWPEditHeading" HorizontalAlignment="Left" Height="22" Margin="7,101,0,0" VerticalAlignment="Top" Width="69">
1584
                    <ComboBoxItem Content=" - - - " HorizontalContentAlignment="Center"/>
1585
                    <ComboBoxItem Content="WP/POI"/>
1586
                    <ComboBoxItem Content="degree"/>
1587
                </ComboBox>
1588
                <Label x:Name="lblWPEditSpeed" HorizontalAlignment="Right" Margin="0,140,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="50" Content="{Binding Value, ElementName=SliderSpeed}" ContentStringFormat="{}{0} m/s" Height="21" ClipToBounds="True" VerticalContentAlignment="Center">
1589
                    <Label.Style>
1590
                        <Style TargetType="{x:Type Label}">
1591
                            <Setter Property="Visibility" Value="Collapsed" />
1592
                            <Style.Triggers>
1593
                                <DataTrigger Binding="{Binding Value, ElementName=SliderSpeed}">
1594
                                    <Setter Property="Content" Value="{Binding Value, ElementName=SliderSpeed}"/>
1595
                                </DataTrigger>
1596
                                <DataTrigger Binding="{Binding SelectedIndex,ElementName=cbWPEditSpeed}" Value="1">
1597
                                    <Setter Property="Visibility" Value="Visible"/>
1598
                                </DataTrigger>
1599
                            </Style.Triggers>
1600
                        </Style>
1601
                    </Label.Style>
1602
                </Label>
2440 - 1603
                <Slider x:Name="SliderSpeed" HorizontalAlignment="Right" Height="29" Margin="0,139,59,0" VerticalAlignment="Top" Width="158" Maximum="24.7" FontSize="20" Value="24.7" Minimum="0.1" LargeChange="0.1"  TickFrequency="0.1" IsSnapToTickEnabled="True">
2437 - 1604
                    <Slider.Style >
1605
                        <Style BasedOn="{StaticResource TouchSliderStyle}" TargetType="{x:Type Slider}">
1606
                            <Setter Property="Visibility" Value="Collapsed" />
1607
                            <Style.Triggers>
1608
                                <DataTrigger Binding="{Binding SelectedIndex,ElementName=cbWPEditSpeed}" Value="1">
1609
                                    <Setter Property="Visibility" Value="Visible"/>
1610
                                </DataTrigger>
1611
                            </Style.Triggers>
1612
                        </Style>
1613
                    </Slider.Style>
1614
                </Slider>
1615
                <Label x:Name="label4_Copy43" Content="Speed" HorizontalAlignment="Left" Margin="7,127,0,0" Width="54" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/>
1616
                <ComboBox x:Name="cbWPEditSpeed" HorizontalAlignment="Left" Height="22" Margin="7,145,0,0" VerticalAlignment="Top" Width="69">
1617
                    <ComboBoxItem Content="MAX"/>
1618
                    <ComboBoxItem Content="m/s"/>
1619
                    <ComboBoxItem Content="Poti 1"/>
1620
                    <ComboBoxItem Content="Poti 2"/>
1621
                    <ComboBoxItem Content="Poti 3"/>
1622
                    <ComboBoxItem Content="Poti 4"/>
1623
                    <ComboBoxItem Content="Poti 5"/>
1624
                    <ComboBoxItem Content="Poti 6"/>
1625
                    <ComboBoxItem Content="Poti 7"/>
1626
                    <ComboBoxItem Content="Poti 8"/>
1627
                </ComboBox>
1628
                <Label x:Name="lblWPEditClimbrate" HorizontalAlignment="Right" Margin="0,185,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="50" Content="{Binding Value, ElementName=SliderClimbrate}" ContentStringFormat="{}{0} m/s" Height="21" ClipToBounds="True" VerticalContentAlignment="Center">
1629
                    <Label.Style>
1630
                        <Style TargetType="{x:Type Label}">
1631
                            <Style.Triggers>
1632
                                <DataTrigger Binding="{Binding Value, ElementName=SliderClimbrate}">
1633
                                    <Setter Property="Content" Value="{Binding Value, ElementName=SliderClimbrate}"/>
1634
                                </DataTrigger>
1635
                                <DataTrigger Binding="{Binding SelectedIndex,ElementName=cbWPEditClimbrate}" Value="0">
1636
                                    <Setter Property="Visibility" Value="Hidden"/>
1637
                                </DataTrigger>
1638
                            </Style.Triggers>
1639
                        </Style>
1640
                    </Label.Style>
1641
                </Label>
2440 - 1642
                <Slider x:Name="SliderClimbrate" HorizontalAlignment="Right" Height="29" Margin="0,184,59,0" VerticalAlignment="Top" Width="158" Maximum="25.4" FontSize="20" Value="26" Minimum="0.1" LargeChange="0.1" TickFrequency="0.1" IsSnapToTickEnabled="True">
2437 - 1643
                    <Slider.Style >
1644
                        <Style BasedOn="{StaticResource TouchSliderStyle}" TargetType="{x:Type Slider}">
1645
                            <Style.Triggers>
1646
                                <DataTrigger Binding="{Binding SelectedIndex,ElementName=cbWPEditClimbrate}" Value="0">
1647
                                    <Setter Property="Visibility" Value="Hidden"/>
1648
                                </DataTrigger>
1649
                            </Style.Triggers>
1650
                        </Style>
1651
                    </Slider.Style>
1652
                </Slider>
1653
                <Label x:Name="label4_Copy44" Content="Climbrate" HorizontalAlignment="Left" Margin="7,172,0,0" Width="54" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/>
1654
                <ComboBox x:Name="cbWPEditClimbrate" HorizontalAlignment="Left" Height="22" Margin="7,190,0,0" VerticalAlignment="Top" Width="69">
1655
                    <ComboBoxItem Content="AUTO"/>
1656
                    <ComboBoxItem Content="m/s"/>
1657
                </ComboBox>
1658
                <Label x:Name="lblWPEditRadius" HorizontalAlignment="Right" Margin="0,227,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="50" Content="{Binding Value, ElementName=SliderRadius}" ContentStringFormat="{}{0} m" Height="21" ClipToBounds="True" VerticalContentAlignment="Center">
1659
                    <Label.Style>
1660
                        <Style TargetType="{x:Type Label}">
1661
                            <Style.Triggers>
1662
                                <DataTrigger Binding="{Binding Value, ElementName=SliderRadius}">
1663
                                    <Setter Property="Content" Value="{Binding Value, ElementName=SliderRadius}" />
1664
                                </DataTrigger>
1665
                            </Style.Triggers>
1666
                        </Style>
1667
                    </Label.Style>
1668
                </Label>
1669
                <Slider x:Name="SliderRadius" HorizontalAlignment="Right" Height="29" Margin="0,226,59,0" VerticalAlignment="Top" Width="158" Maximum="254" FontSize="20" Style="{DynamicResource TouchSliderStyle}" LargeChange="1" SmallChange="1" Value="254" IsSnapToTickEnabled="True" />
1670
                <Label x:Name="label4_Copy45" Content="Radius" HorizontalAlignment="Left" Margin="7,228,0,0" Width="54" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/>
1671
                <Label x:Name="lblWPEditHoldtime" HorizontalAlignment="Right" Margin="0,269,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="50" Content="{Binding Value, ElementName=SliderHoldTime}" ContentStringFormat="{}{0} s" Height="21" ClipToBounds="True" VerticalContentAlignment="Center">
1672
                    <Label.Style>
1673
                        <Style TargetType="{x:Type Label}">
1674
                            <Style.Triggers>
1675
                                <DataTrigger Binding="{Binding Value, ElementName=SliderHoldTime}">
1676
                                    <Setter Property="Content" Value="{Binding Value, ElementName=SliderHoldTime}" />
1677
                                </DataTrigger>
1678
                            </Style.Triggers>
1679
                        </Style>
1680
                    </Label.Style>
1681
                </Label>
1682
                <Slider x:Name="SliderHoldTime" HorizontalAlignment="Right" Height="29" Margin="0,268,59,0" VerticalAlignment="Top" Width="158" Maximum="254" FontSize="20" Style="{DynamicResource TouchSliderStyle}" LargeChange="1" SmallChange="1" Value="254" IsSnapToTickEnabled="True" />
1683
                <Label x:Name="label4_Copy46" Content="Holdtime" HorizontalAlignment="Left" Margin="7,270,0,0" Width="54" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/>
1684
                <Label x:Name="lblWPEditAutoTrigger" HorizontalAlignment="Right" Margin="0,311,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="50" Content="{Binding Value, ElementName=SliderAutoTrigger}" ContentStringFormat="{}{0} m" Height="21" ClipToBounds="True" VerticalContentAlignment="Center">
1685
                    <Label.Style>
1686
                        <Style TargetType="{x:Type Label}">
1687
                            <Style.Triggers>
1688
                                <DataTrigger Binding="{Binding Value, ElementName=SliderAutoTrigger}">
1689
                                    <Setter Property="Content" Value="{Binding Value, ElementName=SliderAutoTrigger}" />
1690
                                </DataTrigger>
1691
                            </Style.Triggers>
1692
                        </Style>
1693
                    </Label.Style>
1694
                </Label>
1695
                <Slider x:Name="SliderAutoTrigger" HorizontalAlignment="Right" Height="29" Margin="0,310,59,0" VerticalAlignment="Top" Width="158" Maximum="254" FontSize="20" Style="{DynamicResource TouchSliderStyle}" LargeChange="1" SmallChange="1" Value="254" IsSnapToTickEnabled="True" />
1696
                <Label x:Name="label4_Copy47" Content="Autotrigger" HorizontalAlignment="Left" Margin="7,312,0,0" Width="69" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/>
1697
                <Label x:Name="lblWPEditCamAngle" HorizontalAlignment="Right" Margin="0,358,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="50" Content="{Binding Value, ElementName=SliderCamAngle}" ContentStringFormat="{}{0} °" Height="21" ClipToBounds="True" VerticalContentAlignment="Center">
1698
                    <Label.Style>
1699
                        <Style TargetType="{x:Type Label}">
1700
                            <Setter Property="Visibility" Value="Hidden" />
1701
                            <Style.Triggers>
1702
                                <DataTrigger Binding="{Binding Value, ElementName=SlideCamAngle}">
1703
                                    <Setter Property="Content" Value="{Binding Value, ElementName=SliderCamAngle}"/>
1704
                                </DataTrigger>
1705
                                <DataTrigger Binding="{Binding SelectedIndex,ElementName=cbWPEditCamAngle}" Value="2">
1706
                                    <Setter Property="Visibility" Value="Visible"/>
1707
                                </DataTrigger>
1708
                            </Style.Triggers>
1709
                        </Style>
1710
                    </Label.Style>
1711
                </Label>
1712
                <Slider x:Name="SliderCamAngle" HorizontalAlignment="Right" Height="29" Margin="0,357,59,0" VerticalAlignment="Top" Width="158" Maximum="254" FontSize="20" LargeChange="1" SmallChange="1" Value="254" IsSnapToTickEnabled="True" Minimum="1">
1713
                    <Slider.Style >
1714
                        <Style BasedOn="{StaticResource TouchSliderStyle}" TargetType="{x:Type Slider}">
1715
                            <Setter Property="Visibility" Value="Hidden" />
1716
                            <Style.Triggers>
1717
                                <DataTrigger Binding="{Binding SelectedIndex,ElementName=cbWPEditCamAngle}" Value="2">
1718
                                    <Setter Property="Visibility" Value="Visible"/>
1719
                                </DataTrigger>
1720
                            </Style.Triggers>
1721
                        </Style>
1722
                    </Slider.Style>
1723
                </Slider>
1724
 
1725
                <Label x:Name="label4_Copy48" Content="Camera angle" HorizontalAlignment="Left" Margin="7,345,0,0" Width="81" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/>
1726
                <ComboBox x:Name="cbWPEditCamAngle" HorizontalAlignment="Left" Height="22" Margin="7,365,0,0" VerticalAlignment="Top" Width="69">
1727
                    <ComboBoxItem Content=" - - - " HorizontalContentAlignment="Center"/>
1728
                    <ComboBoxItem Content="AUTO"/>
1729
                    <ComboBoxItem Content="degree"/>
1730
                </ComboBox>
1731
                <Label x:Name="lblWPEditOut1" HorizontalAlignment="Right" Margin="0,400,0,0" VerticalAlignment="Top" Foreground="White" Padding="0" Width="50" Content="{Binding Value, ElementName=SliderOut1}" ContentStringFormat="{}{0} ms" Height="21" ClipToBounds="True" VerticalContentAlignment="Center">
1732
                    <Label.Style>
1733
                        <Style TargetType="{x:Type Label}">
1734
                            <Style.Triggers>
1735
                                <DataTrigger Binding="{Binding Value, ElementName=SliderOut1}">
1736
                                    <Setter Property="Content" Value="{Binding Value, ElementName=SliderOut1}" />
1737
                                </DataTrigger>
1738
                            </Style.Triggers>
1739
                        </Style>
1740
                    </Label.Style>
1741
                </Label>
1742
                <Slider x:Name="SliderOut1" HorizontalAlignment="Right" Height="29" Margin="0,399,59,0" VerticalAlignment="Top" Width="158" Maximum="254" FontSize="20" Style="{DynamicResource TouchSliderStyle}" LargeChange="1" SmallChange="1" Value="254" IsSnapToTickEnabled="True" />
1743
                <Label x:Name="label4_Copy49" Content="OUT1 timer" HorizontalAlignment="Left" Margin="7,401,0,0" Width="69" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/>
1744
                <ComboBox x:Name="cbWPEditType" HorizontalAlignment="Left" Height="22" Margin="6,18,0,0" VerticalAlignment="Top" Width="70">
1745
                    <ComboBoxItem Content="WP"/>
1746
                    <ComboBoxItem Content="POI"/>
1747
                    <ComboBoxItem Content="Failsafe"/>
1748
                    <ComboBoxItem Content="Landing"/>
1749
                </ComboBox>
1750
                <Label x:Name="label4a" Content="Type" HorizontalAlignment="Left" Margin="7,0,0,0" Width="39" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/>
1751
                <Label x:Name="label4b" Content="Prefix" HorizontalAlignment="Left" Margin="82,0,0,0" Width="35" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/>
1752
                <TextBox x:Name="tbWPEditPrefix" HorizontalAlignment="Left" Height="22" Margin="82,18,0,0" VerticalAlignment="Top" Width="29" IsUndoEnabled="False" MaxLines="1" MaxLength="1" Foreground="White" Background="{x:Null}" VerticalContentAlignment="Center" IsTabStop="False"/>
1753
                <Rectangle HorizontalAlignment="Left" Width="75" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="7,0,0,131" Height="31" VerticalAlignment="Bottom">
1754
                    <Rectangle.Style>
1755
                        <Style TargetType="{x:Type Rectangle}">
1756
                            <Style.Triggers>
1757
                                <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnEditWPSave}" Value="True">
1758
                                    <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
1759
                                </DataTrigger>
1760
                            </Style.Triggers>
1761
                        </Style>
1762
                    </Rectangle.Style>
1763
                </Rectangle>
1764
                <Button x:Name="btnEditWPSave" Content="" HorizontalAlignment="Left" Height="26" Margin="9,0,0,133" VerticalAlignment="Bottom" Width="71" ToolTip="save the changes made to the list" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnEditWPSave_Click">
1765
                    <Button.Background>
1766
                        <ImageBrush ImageSource="Images/Save.png" Stretch="Uniform"/>
1767
                    </Button.Background>
1768
                </Button>
1769
                <Label x:Name="label4_Copy27" Content="save changes" HorizontalAlignment="Left" Margin="5,0,0,159" VerticalAlignment="Bottom" Width="96" Foreground="White" Height="26"/>
1770
                <Rectangle HorizontalAlignment="Left" Width="75" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="85,0,0,131" Height="31" VerticalAlignment="Bottom" ToolTip="add WP to list">
1771
                    <Rectangle.Style>
1772
                        <Style TargetType="{x:Type Rectangle}">
1773
                            <Style.Triggers>
1774
                                <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnEditWPAdd}" Value="True">
1775
                                    <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
1776
                                </DataTrigger>
1777
                            </Style.Triggers>
1778
                        </Style>
1779
                    </Rectangle.Style>
1780
                </Rectangle>
1781
                <Button x:Name="btnEditWPAdd" HorizontalAlignment="Left" Height="29" Margin="85,0,0,132" VerticalAlignment="Bottom" Width="74" ToolTip="add WP to list" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnEditWPAdd_Click" RenderTransformOrigin="0.5,0.5" Background="{x:Null}">
1782
                    <Button.RenderTransform>
1783
                        <TransformGroup>
1784
                            <ScaleTransform/>
1785
                            <SkewTransform/>
1786
                            <RotateTransform Angle="0.013"/>
1787
                            <TranslateTransform/>
1788
                        </TransformGroup>
1789
                    </Button.RenderTransform>
1790
                    <Image x:Name="image" Height="23" Width="26" Source="Images/Delete.png" RenderTransformOrigin="0.5,0.5">
1791
                        <Image.RenderTransform>
1792
                            <TransformGroup>
1793
                                <ScaleTransform/>
1794
                                <SkewTransform/>
1795
                                <RotateTransform Angle="45"/>
1796
                                <TranslateTransform/>
1797
                            </TransformGroup>
1798
                        </Image.RenderTransform>
1799
                    </Image>
1800
                </Button>
1801
                <Label x:Name="label4_Copy30" Content="add WP" HorizontalAlignment="Left" Margin="86,0,0,159" VerticalAlignment="Bottom" Width="96" Foreground="White" Height="26"/>
1802
                <Rectangle HorizontalAlignment="Left" Width="75" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="163,0,0,131" Height="31" VerticalAlignment="Bottom">
1803
                    <Rectangle.Style>
1804
                        <Style TargetType="{x:Type Rectangle}">
1805
                            <Style.Triggers>
1806
                                <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnEditWPDel}" Value="True">
1807
                                    <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
1808
                                </DataTrigger>
1809
                            </Style.Triggers>
1810
                        </Style>
1811
                    </Rectangle.Style>
1812
                </Rectangle>
1813
                <Button x:Name="btnEditWPDel" Content="" HorizontalAlignment="Left" Height="25" Margin="167,0,0,134" VerticalAlignment="Bottom" Width="68" ToolTip="delete WP from list" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnEditWPDel_Click">
1814
                    <Button.Background>
1815
                        <ImageBrush ImageSource="Images/Delete.png" Stretch="Uniform"/>
1816
                    </Button.Background>
1817
                </Button>
1818
                <Label x:Name="label4_Copy40" Content="delete WP" HorizontalAlignment="Left" Margin="164,0,0,159" VerticalAlignment="Bottom" Width="96" Foreground="White" Height="26"/>
1819
                <Label x:Name="lblWPEditIndex" Content="##" HorizontalAlignment="Left" Height="23" Margin="111,17,0,0" VerticalAlignment="Top" Width="29" Foreground="White" VerticalContentAlignment="Center"/>
1820
                <Rectangle HorizontalAlignment="Left" Width="44" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="251,0,0,124" Height="34" VerticalAlignment="Bottom" RenderTransformOrigin="0.5,0.525">
1821
                    <Rectangle.Style>
1822
                        <Style TargetType="{x:Type Rectangle}">
1823
                            <Style.Triggers>
1824
                                <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnWPEditmoveUp}" Value="True">
1825
                                    <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
1826
                                </DataTrigger>
1827
                            </Style.Triggers>
1828
                        </Style>
1829
                    </Rectangle.Style>
1830
                </Rectangle>
1831
                <ed:LineArrow Fill="Black" Height="0" Stroke="White" StrokeThickness="4" Width="25" RenderTransformOrigin="0.5,0.5" Margin="261,0,0,138" HorizontalAlignment="Left" VerticalAlignment="Bottom">
1832
                    <ed:LineArrow.RenderTransform>
1833
                        <TransformGroup>
1834
                            <ScaleTransform/>
1835
                            <SkewTransform/>
1836
                            <RotateTransform Angle="-90"/>
1837
                            <TranslateTransform/>
1838
                        </TransformGroup>
1839
                    </ed:LineArrow.RenderTransform>
1840
                </ed:LineArrow>
1841
                <Button x:Name="btnWPEditmoveUp" HorizontalAlignment="Left" Height="34" Margin="251,0,0,124" VerticalAlignment="Bottom" Width="44" ToolTip="move WP up in list (index -1)" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnWPEditmoveUp_Click" Padding="14,1" Background="#00000000"/>
1842
                <Rectangle HorizontalAlignment="Left" Width="44" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="251,0,0,87" Height="34" VerticalAlignment="Bottom" RenderTransformOrigin="0.5,0.525">
1843
                    <Rectangle.Style>
1844
                        <Style TargetType="{x:Type Rectangle}">
1845
                            <Style.Triggers>
1846
                                <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnWPEditmoveDown}" Value="True">
1847
                                    <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
1848
                                </DataTrigger>
1849
                            </Style.Triggers>
1850
                        </Style>
1851
                    </Rectangle.Style>
1852
                </Rectangle>
1853
                <ed:LineArrow Fill="Black" Height="0" Stroke="White" StrokeThickness="4" Width="25" RenderTransformOrigin="0.5,0.5" Margin="261,0,19,106" VerticalAlignment="Bottom">
1854
                    <ed:LineArrow.RenderTransform>
1855
                        <TransformGroup>
1856
                            <ScaleTransform/>
1857
                            <SkewTransform/>
1858
                            <RotateTransform Angle="90"/>
1859
                            <TranslateTransform/>
1860
                        </TransformGroup>
1861
                    </ed:LineArrow.RenderTransform>
1862
                </ed:LineArrow>
1863
                <Button x:Name="btnWPEditmoveDown" HorizontalAlignment="Left" Margin="251,0,0,87" Width="44" ToolTip="move WP down in list (index +1)" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnWPEditmoveDown_Click" Padding="14,1" Background="#00000000" Height="34" VerticalAlignment="Bottom"/>
1864
                <Rectangle HorizontalAlignment="Left" Width="78" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="86,0,0,80" Height="31" VerticalAlignment="Bottom" RenderTransformOrigin="0.5,0.525">
1865
                    <Rectangle.Style>
1866
                        <Style TargetType="{x:Type Rectangle}">
1867
                            <Style.Triggers>
1868
                                <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnSendActiveWP_Copy1}" Value="True">
1869
                                    <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
1870
                                </DataTrigger>
1871
                            </Style.Triggers>
1872
                        </Style>
1873
                    </Rectangle.Style>
1874
                </Rectangle>
1875
                <Button x:Name="btnSendActiveWP_Copy1" Content="" HorizontalAlignment="Left" Height="28" Margin="87,0,0,81" VerticalAlignment="Bottom" Width="77" ToolTip="Set WP as active WP" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnSendActiveWP_Click">
1876
                    <Button.Background>
1877
                        <ImageBrush ImageSource="Images/Blitz.png" Stretch="Uniform"/>
1878
                    </Button.Background>
1879
                </Button>
1880
                <Label x:Name="label4_Copy29" Content="set as active WP" HorizontalAlignment="Left" Margin="83,0,0,108" VerticalAlignment="Bottom" Width="96" Foreground="White" Height="26"/>
1881
                <Rectangle HorizontalAlignment="Left" Width="75" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="8,0,0,80" Height="31" VerticalAlignment="Bottom">
1882
                    <Rectangle.Style>
1883
                        <Style TargetType="{x:Type Rectangle}">
1884
                            <Style.Triggers>
1885
                                <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnEditWPSendToCopter}" Value="True">
1886
                                    <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
1887
                                </DataTrigger>
1888
                            </Style.Triggers>
1889
                        </Style>
1890
                    </Rectangle.Style>
1891
                </Rectangle>
1892
                <Button x:Name="btnEditWPSendToCopter" Content="" HorizontalAlignment="Left" Height="28" Margin="8,0,0,81" VerticalAlignment="Bottom" Width="75" ToolTip="send selected WP to copter" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnEditWPSendToCopter_Click">
1893
                    <Button.Background>
1894
                        <ImageBrush ImageSource="Images/SendToCopter.png" Stretch="Uniform"/>
1895
                    </Button.Background>
1896
                </Button>
1897
                <Label x:Name="label4_Copy34" Content="send to copter" HorizontalAlignment="Left" Margin="2,0,0,108" VerticalAlignment="Bottom" Width="96" Foreground="White" Height="26"/>
1898
                <Label x:Name="label4_Copy16" Content="Latitude" HorizontalAlignment="Left" Margin="143,0,0,0" Width="54" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/>
1899
                <TextBox x:Name="tbWPEditLat" HorizontalAlignment="Left" Height="22" Margin="143,18,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" />
1900
                <Label x:Name="label4_Copy17" Content="Longitude" HorizontalAlignment="Left" Margin="224,0,0,0" Width="54" Foreground="White" Padding="0" Height="18" VerticalAlignment="Top"/>
1901
                <TextBox x:Name="tbWPEditLon" HorizontalAlignment="Left" Height="22" Margin="224,18,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"/>
1902
                <Rectangle HorizontalAlignment="Left" Width="86" Stroke="#FFE4E4E4" StrokeThickness="0.5" Margin="11,0,0,19" Height="34" VerticalAlignment="Bottom">
1903
                    <Rectangle.Style>
1904
                        <Style TargetType="{x:Type Rectangle}">
1905
                            <Style.Triggers>
1906
                                <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnWPEditAddCurrentPos}" Value="True">
1907
                                    <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
1908
                                </DataTrigger>
1909
                            </Style.Triggers>
1910
                        </Style>
1911
                    </Rectangle.Style>
1912
                </Rectangle>
1913
                <Button x:Name="btnWPEditAddCurrentPos" Content="" HorizontalAlignment="Left" Height="32" Margin="12,0,0,20" VerticalAlignment="Bottom" Width="85" ToolTip="add current copter position to WP list" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Click="btnWPAddCurrentPos_Click">
1914
                    <Button.Background>
1915
                        <ImageBrush ImageSource="Images/CurrentPos.png" Stretch="Uniform"/>
1916
                    </Button.Background>
1917
                </Button>
1918
                <Label x:Name="label4_Copy28" Content="add current Pos" HorizontalAlignment="Left" Margin="9,0,0,49" VerticalAlignment="Bottom" Width="107" Foreground="White" Height="26"/>
1919
                <CheckBox x:Name="checkBoxWPAddUseCopterHeight" Content="use copter height" HorizontalAlignment="Left" Height="16" Margin="102,564,0,0" VerticalAlignment="Top" Width="117" Background="White" Foreground="White" IsChecked="True" Click="checkBoxWPAddUseCopterHeight_Click"/>
1920
                <CheckBox x:Name="checkBoxWPAddUseCopterHeading" Content="use copter heading" HorizontalAlignment="Left" Height="16" Margin="102,582,0,0" VerticalAlignment="Top" Width="133" Background="White" Foreground="White" IsChecked="True" Click="checkBoxWPAddUseCopterHeading_Click"/>
1921
                <Rectangle HorizontalAlignment="Left" Width="70" Stroke="White" StrokeThickness="0.5" Margin="232,0,0,19" Height="38" VerticalAlignment="Bottom" RenderTransformOrigin="0.5,0.525">
1922
                    <Rectangle.Style>
1923
                        <Style TargetType="{x:Type Rectangle}">
1924
                            <Style.Triggers>
1925
                                <DataTrigger Binding="{Binding IsMouseOver, ElementName=btnSaveDefault}" Value="True">
1926
                                    <Setter Property="Fill" Value="{DynamicResource PressedItemBrush}"/>
1927
                                </DataTrigger>
1928
                            </Style.Triggers>
1929
                        </Style>
1930
                    </Rectangle.Style>
1931
                </Rectangle>
1932
                <Button x:Name="btnSaveDefault" HorizontalAlignment="Left" Height="37" Margin="232,0,0,20" VerticalAlignment="Bottom" Width="70" ToolTip="use these values as default for new waypoints" BorderBrush="#FFBDBDBD" Style="{DynamicResource ButtonWithoutEffectStyle}" Background="{x:Null}" Click="btnSaveDefault_Click" Foreground="#FFFFFEFE" Padding="1" VerticalContentAlignment="Center" HorizontalContentAlignment="Center">
1933
                    <Label x:Name="label7" Content="save as&#xD;&#xA;default" Height="33" Width="66" Foreground="White" Padding="2,-1,1,1" HorizontalContentAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center" Background="#19CBB8B8"/>
1934
                </Button>
1935
            </Grid>
1936
            <Canvas x:Name="canvasAddPoint" HorizontalAlignment="Left" Height="196" Margin="470,180,0,0" VerticalAlignment="Top" Width="137" Background="#7F000000" Visibility="Collapsed" MouseLeave="canvasAddPoint_MouseLeave" LostMouseCapture="canvasAddPoint_MouseLeave">
1937
                <Button x:Name="btnCmAddWP" Content="add waypoint" Height="40" Canvas.Left="10" Canvas.Top="10" Width="117" Click="btnCmAddWP_Click"/>
1938
                <Button x:Name="btnCmAddLanding" Content="add landingpoint" Height="40" Canvas.Left="10" Canvas.Top="55" Width="117" Click="btnCmAddLanding_Click"/>
1939
                <Button x:Name="btnCmAddFailsave" Content="add failsavepoint" Height="40" Canvas.Left="10" Canvas.Top="100" Width="117" Click="btnCmAddFailsave_Click"/>
1940
                <Button x:Name="btnCmAddPOI" Content="add POI" Height="40" Canvas.Left="10" Canvas.Top="146" Width="117" Click="btnCmAddPOI_Click"/>
1941
            </Canvas>
2287 - 1942
            <!--<Rectangle x:Name="rctConnection" Fill="#FFF4F4F5" Height="16" Margin="0,10,7,0" Stroke="Black" VerticalAlignment="Top" HorizontalAlignment="Right" Width="15"/>-->
1943
        </Grid>
2429 - 1944
        <Label x:Name="labelSwitchToNavi" Content="The communication is set to FlightControl&#xA;The necessary data can ONLY be accessed &#xA;by the NaviControl!&#xA;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" Visibility="Collapsed">
2287 - 1945
            <Label.Background>
1946
                <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
1947
                    <GradientStop Color="#B2FF2121" Offset="0.457"/>
1948
                    <GradientStop Color="Red" Offset="1"/>
1949
                </LinearGradientBrush>
1950
            </Label.Background>
1951
        </Label>
1952
    </Grid>
1953
</Window>