-
Notifications
You must be signed in to change notification settings - Fork 0
/
VMSettings.xaml
148 lines (135 loc) · 6.79 KB
/
VMSettings.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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<winex:WindowEx
x:Class="VMsApp.VMSettings"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:VMsApp"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:winex="using:WinUIEx"
xmlns:vmsettings="using:VMsApp.VMSettingsPages"
mc:Ignorable="d"
Title="VM Settings"
IsResizable="False"
IsMaximizable="False"
IsMinimizable="False">
<Window.SystemBackdrop>
<MicaBackdrop Kind="Base"/>
</Window.SystemBackdrop>
<Page>
<Page.Resources>
<ResourceDictionary>
<MenuFlyout
x:Name="TitlebarMenuFlyout"
x:FieldModifier="public"
Placement="BottomEdgeAlignedLeft">
<MenuFlyoutItem
Click="{x:Bind OnRestoreClicked}"
IsEnabled="False"
IsTabStop="False"
Style="{StaticResource AppTitleBarMenuFlyoutItemStyle}"
Text="Restore"
UseSystemFocusVisuals="False">
<MenuFlyoutItem.Icon>
<FontIcon Glyph="" />
</MenuFlyoutItem.Icon>
</MenuFlyoutItem>
<MenuFlyoutItem
Click="{x:Bind OnMoveClicked}"
IsEnabled="{x:Bind IsWindowMaximized.Equals(x:False), Mode=OneWay}"
IsTabStop="False"
Style="{StaticResource AppTitleBarMenuFlyoutItemStyle}"
Tag="{x:Bind TitlebarMenuFlyout}"
Text="Move"
UseSystemFocusVisuals="False" />
<MenuFlyoutItem
Click="{x:Bind OnSizeClicked}"
IsEnabled="False"
IsTabStop="False"
Style="{StaticResource AppTitleBarMenuFlyoutItemStyle}"
Tag="{x:Bind TitlebarMenuFlyout}"
Text="Size"
UseSystemFocusVisuals="False" />
<MenuFlyoutItem
Click="{x:Bind OnMinimizeClicked}"
IsEnabled="False"
IsTabStop="False"
Style="{StaticResource AppTitleBarMenuFlyoutItemStyle}"
Text="Minimize"
UseSystemFocusVisuals="False">
<MenuFlyoutItem.Icon>
<FontIcon Glyph="" />
</MenuFlyoutItem.Icon>
</MenuFlyoutItem>
<MenuFlyoutItem
Click="{x:Bind OnMaximizeClicked}"
IsEnabled="False"
IsTabStop="False"
Style="{StaticResource AppTitleBarMenuFlyoutItemStyle}"
Text="Maximize"
UseSystemFocusVisuals="False">
<MenuFlyoutItem.Icon>
<FontIcon Glyph="" />
</MenuFlyoutItem.Icon>
</MenuFlyoutItem>
<MenuFlyoutSeparator Width="200" />
<MenuFlyoutItem
Click="{x:Bind OnCloseClicked}"
IsTabStop="False"
Style="{StaticResource AppTitleBarMenuFlyoutItemStyle}"
Text="Close"
UseSystemFocusVisuals="False">
<MenuFlyoutItem.Icon>
<FontIcon Glyph="" />
</MenuFlyoutItem.Icon>
<MenuFlyoutItem.KeyboardAccelerators>
<KeyboardAccelerator Key="F4" Modifiers="Menu" />
</MenuFlyoutItem.KeyboardAccelerators>
</MenuFlyoutItem>
</MenuFlyout>
</ResourceDictionary>
</Page.Resources>
<Grid>
<winex:TitleBar
x:Name="VMSettingsWindowTitleBar"
Title="VM Settings"
Height="32"
VerticalAlignment="Top"
Background="Transparent">
<winex:TitleBar.IconSource>
<FontIconSource Glyph="" />
</winex:TitleBar.IconSource>
</winex:TitleBar>
<NavigationView Margin="0,32,0,50" IsBackButtonVisible="Collapsed" IsPaneToggleButtonVisible="False" IsSettingsVisible="False" SelectionChanged="NavigationView_SelectionChanged" PaneDisplayMode="Top">
<NavigationView.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="ms-appx:///Styles/NavigationViewItemButtonStyle.xaml" />
</ResourceDictionary.MergedDictionaries>
<SolidColorBrush x:Key="NavigationViewContentGridBorderBrush" Color="Transparent" />
<SolidColorBrush x:Key="NavigationViewContentBackground" Color="Transparent" />
</ResourceDictionary>
</NavigationView.Resources>
<NavigationView.MenuItems>
<NavigationViewItem Tag="Hardware" Content="Hardware" IsSelected="True">
<NavigationViewItem.Icon>
<FontIcon Glyph=""/>
</NavigationViewItem.Icon>
</NavigationViewItem>
<NavigationViewItem Tag="Options" Content="Options">
<NavigationViewItem.Icon>
<FontIcon Glyph=""/>
</NavigationViewItem.Icon>
</NavigationViewItem>
</NavigationView.MenuItems>
<Frame x:Name="VMSettingsFrame"/>
</NavigationView>
<Grid x:Name="BottomGrid" VerticalAlignment="Bottom" Height="50">
<StackPanel Orientation="Horizontal" VerticalAlignment="Stretch" HorizontalAlignment="Right">
<Button x:Name="OKButton" Content="OK" Height="35" Click="OKButton_Click" UseSystemFocusVisuals="False" BorderThickness="2,2,2,2" IsTabStop="False" Margin="0,0,10,0"/>
<Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Height="35" UseSystemFocusVisuals="False" VerticalAlignment="Center" BorderThickness="2,2,2,2" IsTabStop="False" Margin="0,0,10,0"/>
<Button x:Name="HelpButton" Content="Help" Height="35" UseSystemFocusVisuals="False" VerticalAlignment="Center" BorderThickness="2,2,2,2" IsTabStop="False" Margin="0,0,10,0"/>
</StackPanel>
</Grid>
</Grid>
</Page>
</winex:WindowEx>