-
Notifications
You must be signed in to change notification settings - Fork 0
/
AboutApp.xaml
236 lines (223 loc) · 11.2 KB
/
AboutApp.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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
<winex:WindowEx
x:Class="VMsApp.AboutApp"
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:local="using:VMsApp"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:winex="using:WinUIEx"
Title="About App"
IsMaximizable="False"
IsMinimizable="False"
IsResizable="False"
mc:Ignorable="d">
<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="AboutWindowTitleBar"
Title="About App"
Height="32"
VerticalAlignment="Top"
Background="Transparent">
<winex:TitleBar.IconSource>
<FontIconSource Glyph="" />
</winex:TitleBar.IconSource>
</winex:TitleBar>
<Grid
Margin="12,32,0,0"
HorizontalAlignment="Center"
VerticalAlignment="Top">
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Top">
<StackPanel>
<Image
Width="64"
Height="64"
VerticalAlignment="Center"
Source="ms-appx:///Assets/Square44x44Logo.png" />
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Top"
FontSize="24"
FontWeight="SemiBold"
Style="{StaticResource CaptionTextBlockStyle}"
Text="Product Information" />
</StackPanel>
<StackPanel Margin="0,2,0,0" VerticalAlignment="Center">
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Top"
FontSize="24"
FontWeight="SemiBold"
Style="{StaticResource CaptionTextBlockStyle}"
Text="VMsApp" />
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Top"
FontSize="16"
Style="{StaticResource CaptionTextBlockStyle}"
Text="0.1 Preview" />
<TextBlock
x:Name="CompileDate"
HorizontalAlignment="Center"
VerticalAlignment="Top"
FontSize="16"
Style="{StaticResource CaptionTextBlockStyle}"
Text="Compilation date" />
</StackPanel>
</StackPanel>
<StackPanel
Margin="0,132,0,0"
HorizontalAlignment="Center"
VerticalAlignment="Top">
<StackPanel
Margin="0,54,0,0"
HorizontalAlignment="Center"
VerticalAlignment="Top">
<TextBlock
HorizontalAlignment="Left"
VerticalAlignment="Center"
FontSize="30"
FontWeight="SemiBold"
Style="{StaticResource CaptionTextBlockStyle}"
Text="Developers" />
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Top"
FontSize="24"
Style="{StaticResource CaptionTextBlockStyle}"
Text="Alloyd" />
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Top"
FontSize="24"
Style="{StaticResource CaptionTextBlockStyle}"
Text="ErrorTek" />
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Top"
FontSize="24"
Style="{StaticResource CaptionTextBlockStyle}"
Text="Ivirius" />
</StackPanel>
</StackPanel>
</Grid>
<Grid
x:Name="BottomItems"
HorizontalAlignment="Stretch"
VerticalAlignment="Bottom">
<Button
x:Name="OKButton"
x:Uid="OKString"
Height="35"
Margin="0,0,10,10"
HorizontalAlignment="Right"
VerticalAlignment="Center"
BorderThickness="2,2,2,2"
Click="OKButton_Click"
Content="OK"
IsTabStop="False"
UseSystemFocusVisuals="False">
<Button.Resources>
<ResourceDictionary>
<ResourceDictionary.ThemeDictionaries>
<ResourceDictionary x:Key="Dark">
<SolidColorBrush x:Key="ButtonBorderBrush" Color="{StaticResource SystemAccentColor}" />
<SolidColorBrush x:Key="ButtonBackground" Color="{StaticResource SystemAccentColorDark3}" />
<SolidColorBrush x:Key="ButtonBackgroundPointerOver" Color="{StaticResource SystemAccentColorDark2}" />
<SolidColorBrush x:Key="ButtonBackgroundPressed" Color="{StaticResource SystemAccentColorDark1}" />
<SolidColorBrush x:Key="ButtonForegroundPressed" Color="White" />
<SolidColorBrush x:Key="ButtonBorderBrushPointerOver" Color="{StaticResource SystemAccentColor}" />
<SolidColorBrush x:Key="ButtonBorderBrushPressed" Color="{StaticResource SystemAccentColor}" />
</ResourceDictionary>
<ResourceDictionary x:Key="Light">
<SolidColorBrush x:Key="ButtonBorderBrush" Color="{StaticResource SystemAccentColor}" />
<SolidColorBrush x:Key="ButtonBackground" Color="{StaticResource SystemAccentColorLight3}" />
<SolidColorBrush x:Key="ButtonBackgroundPointerOver" Color="{StaticResource SystemAccentColorLight2}" />
<SolidColorBrush x:Key="ButtonBackgroundPressed" Color="{StaticResource SystemAccentColorLight1}" />
<SolidColorBrush x:Key="ButtonForegroundPressed" Color="Black" />
<SolidColorBrush x:Key="ButtonBorderBrushPointerOver" Color="{StaticResource SystemAccentColor}" />
<SolidColorBrush x:Key="ButtonBorderBrushPressed" Color="{StaticResource SystemAccentColor}" />
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>
</ResourceDictionary>
</Button.Resources>
</Button>
</Grid>
</Grid>
</Page>
</winex:WindowEx>