-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMainWindow.xaml
99 lines (97 loc) · 6.24 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<Window x:Class="DesktopApp.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:controls="clr-namespace:DesktopApp.UserControls"
Title="MainWindow" Height="694" Width="927" Closing="exit_Click">
<Grid>
<TabControl Margin="0,0,0,10">
<TabItem Header="Main">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="153*" />
<ColumnDefinition Width="154*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="183*" />
<RowDefinition Height="31*" />
<RowDefinition Height="64*" />
</Grid.RowDefinitions>
<controls:Joystick x:Name="Joystick" Visibility="Visible" Grid.Column="0" Grid.Row="0"
Margin="10,0,0,72" Grid.RowSpan="2" />
<controls:MediaControls x:Name="Playback" Grid.Column="0" Grid.Row="2" Visibility="Visible"
VerticalAlignment="Top" Grid.ColumnSpan="2" Margin="0,21,10,0" Height="120" />
<controls:Gauges x:Name="Gauges" VerticalAlignment="Center" Grid.Row="0" Margin="456,0,16,0"
Grid.RowSpan="2" Height="500" Grid.ColumnSpan="2"
Grid.Column="0" />
<Button x:Name="CsvFileTrain" Grid.Row="1" Grid.Column="0" Visibility="Hidden"
Content="Upload CSV Train File" HorizontalAlignment="Center" Height="52"
VerticalAlignment="Center" Width="128"
Click="CSVTrainFile_Click" />
<Button x:Name="XmlFile" Grid.Row="1" Grid.Column="0" Content="Upload XML File"
HorizontalAlignment="Left" Height="52" Margin="10,0,0,0" VerticalAlignment="Center"
Width="128" Click="XmlButtonClick" RenderTransformOrigin="-3.066,0.374" />
<Button x:Name="CsvFileTest" Grid.Row="1" Grid.Column="0" Visibility="Hidden"
Content="Upload CSV Test File" HorizontalAlignment="Left" Height="52"
VerticalAlignment="Center" Width="128"
Click="CSVFileTest_Click" Margin="321,0,0,0" />
<Slider Grid.Row="0" Grid.Column="0" x:Name="SliderRudder" HorizontalAlignment="Left"
Value="{Binding VM_Rudder}" IsSnapToTickEnabled="True" IsSelectionRangeEnabled="True"
Visibility="Visible" IsMoveToPointEnabled="False" Height="46" Margin="91,362,0,0"
VerticalAlignment="Top" Width="287" RenderTransformOrigin="0.492,0.489" Minimum="-1"
Maximum="1" />
<Slider Grid.Row="0" Grid.Column="0" x:Name="SliderThrottle" HorizontalAlignment="Left"
Value="{Binding VM_Throttle}" IsSnapToTickEnabled="True" IsSelectionRangeEnabled="True"
Visibility="Visible" IsMoveToPointEnabled="False" Height="46" Margin="-78,197,0,0"
VerticalAlignment="Top" Width="287" RenderTransformOrigin="0.492,0.489" Minimum="0"
Maximum="1">
<Slider.RenderTransform>
<TransformGroup>
<ScaleTransform />
<SkewTransform />
<RotateTransform Angle="90.069" />
<TranslateTransform />
</TransformGroup>
</Slider.RenderTransform>
</Slider>
<Label Grid.Row="0" Grid.Column="0" x:Name="ThrottleLabel" Content="throttle" Visibility="Visible"
HorizontalAlignment="Left" Height="84" Margin="-6,183,0,0" VerticalAlignment="Top"
Width="150" FontSize="24" FontWeight="Bold" RenderTransformOrigin="0.5,0.5">
<Label.RenderTransform>
<TransformGroup>
<ScaleTransform />
<SkewTransform />
<RotateTransform Angle="-90.543" />
<TranslateTransform />
</TransformGroup>
</Label.RenderTransform>
<Label.ContextMenu>
<ContextMenu FontSize="50" FontWeight="Bold" />
</Label.ContextMenu>
</Label>
<Label x:Name="RudderLabel" Content="rudder" Visibility="Visible" HorizontalAlignment="Left"
Height="41" Margin="183,369,0,0" VerticalAlignment="Top" Width="150" FontSize="24"
FontWeight="Bold" RenderTransformOrigin="0.5,0.5"
Grid.Row="0" Grid.Column="0">
<Label.RenderTransform>
<TransformGroup>
<ScaleTransform />
<SkewTransform />
<RotateTransform Angle="-0.636" />
<TranslateTransform />
</TransformGroup>
</Label.RenderTransform>
<Label.ContextMenu>
<ContextMenu FontSize="50" FontWeight="Bold" />
</Label.ContextMenu>
</Label>
</Grid>
</TabItem>
<TabItem Name="GraphsTab" Header="Graphs" Visibility="Hidden">
<controls:GraphsUc x:Name="Graphs" Visibility="Visible" />
</TabItem>
</TabControl>
</Grid>
</Window>