-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
46 lines (34 loc) · 2.03 KB
/
MainWindow.xaml
File metadata and controls
46 lines (34 loc) · 2.03 KB
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
<Window x:Class="Labb3_HES.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:Labb3_HES"
xmlns:views="clr-namespace:Labb3_HES.Views"
mc:Ignorable="d"
Title="hoarseQuizerrer" Height="600" Width="800" MinHeight="600" MinWidth="800"
WindowStartupLocation="CenterScreen"
Loaded="Window_Loaded"
Closing="Window_Closing">
<Window.InputBindings>
<KeyBinding Key="OemPlus" Modifiers="Ctrl" Command="{Binding ConfigurationViewModel.AddQuestionCommand}"/>
<KeyBinding Key="OemMinus" Modifiers="Ctrl" Command="{Binding ConfigurationViewModel.RemoveQuestionCommand}"/>
<KeyBinding Key="I" Modifiers="Ctrl" Command="{Binding ConfigurationViewModel.ShouldOpenImportQuestionsCommand}"/>
<KeyBinding Key="O" Modifiers="Ctrl" Command="{Binding ConfigurationViewModel.OpenPackOptionsCommand}"/>
<KeyBinding Key="P" Modifiers="Ctrl" Command="{Binding PlayerViewModel.PlayQuizCommand}"/>
<KeyBinding Key="E" Modifiers="Ctrl" Command="{Binding ConfigurationViewModel.EnableConfigurationCommand}"/>
<KeyBinding Key="F4" Modifiers="Alt" Command="{Binding ExitApplicationCommand}"/>
<KeyBinding Key="Return" Modifiers="Alt" Command="{Binding ToggleFullScreenCommand}"/>
</Window.InputBindings>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<views:MenuView x:Name="menuView"/>
<views:ConfigurationView Grid.Row="1"/>
<views:PlayerView x:Name="playerView"
Grid.Row="1" />
<views:ResultView Grid.Row="1"/>
</Grid>
</Window>