-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainPage.xaml
44 lines (40 loc) · 1.69 KB
/
MainPage.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
<Page
x:Class="Invaders.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:SegoeSymbols"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Page.Resources>
<local:DoubleToStringHexByteConverter x:Key="hexByteConverter" />
</Page.Resources>
<Page.TopAppBar>
<CommandBar>
<AppBarButton Icon="Back" Click="AppBarButton_Click"></AppBarButton></CommandBar></Page.TopAppBar>
<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TextBlock Name="titleText"
Grid.Row="0"
Text="Segoe UI Symbol"
HorizontalAlignment="Center"
Style="{ThemeResource HeaderTextBlockStyle}" />
<Grid Name="characterGrid"
Grid.Row="1"
HorizontalAlignment="Center"
VerticalAlignment="Center" />
<Slider Grid.Row="2"
Orientation="Horizontal"
Margin="24 0"
Minimum="0"
Maximum="511"
SmallChange="1"
LargeChange="16"
ThumbToolTipValueConverter="{StaticResource hexByteConverter}"
ValueChanged="OnSliderValueChanged" />
</Grid>
</Page>