-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
132 lines (114 loc) · 8.11 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<Window x:Class="FLAD.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"
xmlns:local="clr-namespace:FLAD"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
mc:Ignorable="d"
Title="FF- Leistungsbewerb Hub" Height="800" Width="1400"
WindowState="Maximized"
FontSize="18"
WindowStartupLocation="CenterScreen" Closed="Window_Closed" Loaded="Window_Loaded"
PreviewLostKeyboardFocus="Window_PreviewLostKeyboardFocus"
PreviewKeyDown="Window_PreviewKeyDown"
Foreground="#0A0A0A"
Icon="/Assets/Flame1.ico"
>
<Window.Resources>
<ResourceDictionary Source="./ResourceDictionarys/StyleDictionary.xaml"/>
</Window.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="210"/>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!--Sidebar-->
<Border Grid.Row="0" Grid.Column="0" Grid.RowSpan="3" Background="#DF162A">
<DockPanel>
<StackPanel Margin="10 30" Orientation="Horizontal" HorizontalAlignment="Center" DockPanel.Dock="Top">
<Image Height="70" Style="{StaticResource imgFF}" Margin="0" />
<StackPanel Margin="5 0" VerticalAlignment="Center">
<TextBlock Text="FF-INZERSDORF" FontSize="18" FontWeight="Normal" Foreground="#F2EFED"/>
<TextBlock Text="FLA Dashboard" FontSize="14" FontWeight="Normal" Foreground="#F2EFED"/>
</StackPanel>
</StackPanel>
<Separator Height="1" Margin="20 10" Background="#F2EFED" DockPanel.Dock="Top"/>
<!--- Main Menu Buttons-->
<StackPanel VerticalAlignment="Stretch" DockPanel.Dock="Top">
<Button Style="{StaticResource ModeButton}" x:Name="btStopuhr" TabIndex="1">
<StackPanel Orientation="Horizontal" >
<Image Style="{StaticResource icoSW}" Height="40" Margin="10 0"/>
<TextBlock Text="Stoppuhr" VerticalAlignment="Center" Margin="10"/>
</StackPanel>
</Button>
<Button Style="{StaticResource ModeButton}" x:Name="btZiehen" TabIndex="2">
<StackPanel Orientation="Horizontal">
<Image Style="{StaticResource icoWürfel}" Height="40" Margin="10 0"/>
<TextBlock Text="Ziehen" VerticalAlignment="Center" Margin="10"/>
</StackPanel>
</Button>
<!--<Button Style="{StaticResource ModeButton}" x:Name="btAnalyse" TabIndex="3">
<StackPanel Orientation="Horizontal">
<Image Style="{StaticResource icoAnalyse}" Height="40" Margin="10 0"/>
<TextBlock Text="Analyse" VerticalAlignment="Center" Margin="10"/>
</StackPanel>
</Button>-->
</StackPanel>
<!--- Main Menu Settings-->
<StackPanel DockPanel.Dock="Bottom" VerticalAlignment="Bottom" Orientation="Horizontal" Margin="20 5 20 20">
<ComboBox x:Name="cbComPorts" Width="70" HorizontalAlignment="Right" VerticalAlignment="Stretch" Height="25" DropDownClosed="cbComPorts_DropDownClosed" FontSize="14" Margin="20,0,0,0" Focusable="False" FocusManager.FocusedElement="{Binding ElementName=btStopuhr}">
<ComboBox.ItemContainerStyle>
<Style TargetType="{x:Type ComboBoxItem}">
<Setter Property="Focusable" Value="False"/>
</Style>
</ComboBox.ItemContainerStyle>
</ComboBox>
<TextBlock x:Name="lbStatus" Text="Status" Foreground="#F2EFED" VerticalAlignment="Center" FontSize="14" Margin="10,0,0,0"/>
</StackPanel>
<TextBlock x:Name="tbVersion" DockPanel.Dock="Bottom" Text="Version" FontSize="12" FontWeight="Light" Foreground="#F2EFED" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="0" />
<Separator Height="1" Margin="20 20" Background="#F2EFED" DockPanel.Dock="Bottom"/>
<StackPanel VerticalAlignment="Bottom" DockPanel.Dock="Bottom" Orientation="Horizontal" HorizontalAlignment="Center">
<CheckBox x:Name="cbAudio" Style="{StaticResource CheckBoxAudio}" VerticalAlignment="Center" Checked="cbTon_Checked" Unchecked="cbTon_Unchecked" Margin="10 0" FocusVisualStyle="{x:Null}" Focusable="False"/>
<CheckBox x:Name="cbVideo" IsEnabled="False" Style="{StaticResource CheckBoxVideo}" VerticalAlignment="Center" Checked="cbVideo_Checked" Unchecked="cbVideo_Unchecked" Margin="10 0" FocusVisualStyle="{x:Null}" Focusable="False" />
<CheckBox x:Name="cbSingleMode" Style="{StaticResource CheckBoxSingle}" VerticalAlignment="Center" Checked="cbSingleMode_Checked" Unchecked="cbSingleMode_Unchecked" Margin="10 0" FocusVisualStyle="{x:Null}" Focusable="False" />
</StackPanel>
<!--- Debug Buttons-->
<StackPanel x:Name="debugPannel" DockPanel.Dock="Bottom" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Margin="10" Visibility="Hidden">
<Button Content="Start" x:Name="btStart" Click="btStart_Click" Width="100" Margin="3" Focusable="False"/>
<Button Content="Stop" x:Name="btStop" Click="btStop_Click" Width="100" Margin="3" Focusable="False"/>
<Button Content="Modus" x:Name="btModusWechsel" Click="btModusWechsel_Click" Width="100" Margin="3" Focusable="False"/>
</StackPanel>
</DockPanel>
</Border>
<!--MainTime-->
<Border Grid.Column="1" Grid.ColumnSpan="2" Margin="20 20 20 10" CornerRadius="3" Background="#F2EFED">
<Grid>
<Grid>
<ProgressBar Style="{StaticResource pbStyle}" Height="15" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" x:Name="pbAudioTime" Value="80" />
<TextBlock x:Name="tbAudioTime" Text="" FontWeight="Light" HorizontalAlignment="Center" VerticalAlignment="Bottom" FontSize="12" DockPanel.Dock="Top" Margin="10 0" />
</Grid>
<TextBlock x:Name="lbMainTime" Text="0:00.00" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="340" Foreground="#0A0A0A" />
</Grid>
</Border>
<Grid Grid.Row="2" Grid.Column="2" Margin="10 10 20 20" >
<Border Background="#DF162A" CornerRadius="3 3 0 0" Height="40" VerticalAlignment="Top" Panel.ZIndex="1">
</Border>
<Border Background="#F2EFED" CornerRadius="3" Panel.ZIndex="0">
</Border>
<DataGrid Style="{StaticResource DataGridStyle1}" x:Name="dgRuns" ColumnHeaderStyle= "{StaticResource DataGridHeaderStyle}" Panel.ZIndex="1">
<DataGrid.Columns>
<DataGridTextColumn CellStyle="{StaticResource DataGridCellStyle1}" Header="Startzeit" Width="*" Binding="{Binding StartTimeString}"/>
<DataGridTextColumn CellStyle="{StaticResource DataGridCellStyle2}" Header="Zeit" Width="*" Binding="{Binding TimeString}"/>
</DataGrid.Columns>
</DataGrid>
</Grid>
<Frame Grid.Row="2" Grid.Column="1" Name="SubFrame" Focusable="False" Margin="20 10 10 20" NavigationUIVisibility="Hidden">
</Frame>
</Grid>
</Window>