-
Notifications
You must be signed in to change notification settings - Fork 1
/
MainPage.xaml
38 lines (37 loc) · 2.37 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
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:SimpleClock"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:Custom="using:Telerik.UI.Xaml.Controls.Input"
x:Class="SimpleClock.MainPage"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
RequestedTheme="Dark">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="10*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<CommandBar Height="40" Grid.Row="0" HorizontalAlignment="Stretch" OverflowButtonVisibility="Collapsed" >
<AppBarButton Icon="Setting">
<AppBarButton.Flyout>
<Flyout>
<StackPanel>
<TextBlock Text="Clock Size:" VerticalAlignment="Bottom" HorizontalAlignment="Left" FontSize="18" />
<Custom:RadNumericBox x:Name="SimpleClockNumericBox" HorizontalAlignment="Left" Margin="0,5,0,0" VerticalAlignment="Center" Height="25" Value="{x:Bind ViewModel.ClockFontSizeDouble, Mode=TwoWay}" Minimum="2" Maximum="400" ValueFormat="{}{000:###pt}" />
<MenuFlyoutSeparator Margin="0,10,0,10" />
<TextBlock Text="24hr | 12hr" VerticalAlignment="Bottom" HorizontalAlignment="Left" FontSize="18" />
<ToggleSwitch x:Name="SimpleClockDisplayStyleSwitch" IsOn="{x:Bind ViewModel.IsTwelveHourFormat, Mode=TwoWay}" />
<MenuFlyoutSeparator Margin="0,10,0,10" />
<TextBlock x:Name="SimpleClockAboutTextBlock" Text="{x:Bind ViewModel.SimpleClockAboutText, Mode=OneWay}" />
</StackPanel>
</Flyout>
</AppBarButton.Flyout>
</AppBarButton>
<AppBarButton Icon="FullScreen" Click="FullScreenButton_Click"/>
</CommandBar>
<TextBlock x:Name="SimpleClockDisplay" Text="{x:Bind ViewModel.MainPageClock.TimeString, Mode=OneWay}" VerticalAlignment="Center" HorizontalAlignment="Center" Width="Auto" Height="Auto" Margin="10,10,10,10" FontSize="{x:Bind ViewModel.ClockFontSize, Mode=OneWay}" />
</Grid>
</Page>