Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
108 lines (85 sloc) 4.43 KB
<Page
x:Class="Template10.Views.Shell"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:views="using:Template10.Views"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Page.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="../Styles/SplitViewStyles.xaml"/>
</ResourceDictionary.MergedDictionaries>
<Style TargetType="TextBlock" BasedOn="{StaticResource SplitViewTextBlockStyle}" />
<Style TargetType="RadioButton" BasedOn="{StaticResource SplitViewRadioButtonStyle}" />
</ResourceDictionary>
</Page.Resources>
<SplitView x:Name="ShellSplitView">
<SplitView.Pane>
<Grid Background="{StaticResource SplitViewBackgroundBrush}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<ScrollViewer Grid.Row="0" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Auto">
<StackPanel>
<!-- back -->
<RadioButton Checked="DontCheck" Command="{Binding BackCommand}" Background="{StaticResource SystemControlBackgroundAccentBrush}">
<RadioButton.Tag>
<TextBlock Text="{StaticResource BackButtonText}" FontSize="{StaticResource SplitViewLargeNavFontSize}" />
</RadioButton.Tag>
</RadioButton>
<!-- hamburger -->
<RadioButton Checked="DontCheck" Command="{Binding MenuCommand}">
<RadioButton.Tag>
<TextBlock Text="{StaticResource MenuButtonText}" FontSize="{StaticResource SplitViewLargeNavFontSize}" />
</RadioButton.Tag>
</RadioButton>
</StackPanel>
</ScrollViewer>
<StackPanel x:Name="RadioButtonContainer" Grid.Row="1">
<!-- home -->
<RadioButton Command="{Binding NavCommand}" Content="Home" GroupName="Nav">
<RadioButton.CommandParameter>
<views:NavType Type="views:MainPage" />
</RadioButton.CommandParameter>
<RadioButton.Tag>
<TextBlock Text="" />
</RadioButton.Tag>
</RadioButton>
<!-- privacy -->
<RadioButton Command="{Binding NavCommand}" Content="Privacy" GroupName="Nav">
<RadioButton.CommandParameter>
<views:NavType Type="views:PrivacyPage" />
</RadioButton.CommandParameter>
<RadioButton.Tag>
<TextBlock Text="" />
</RadioButton.Tag>
</RadioButton>
<!-- about -->
<RadioButton Command="{Binding NavCommand}" Content="About" GroupName="Nav">
<RadioButton.CommandParameter>
<views:NavType Type="views:AboutPage" />
</RadioButton.CommandParameter>
<RadioButton.Tag>
<TextBlock Text="" />
</RadioButton.Tag>
</RadioButton>
</StackPanel>
<StackPanel Grid.Row="2">
<!-- settings -->
<RadioButton Command="{Binding NavCommand}" Content="Settings" GroupName="Nav">
<RadioButton.CommandParameter>
<views:NavType Type="views:SettingsPage" />
</RadioButton.CommandParameter>
<RadioButton.Tag>
<TextBlock Text="" />
</RadioButton.Tag>
</RadioButton>
</StackPanel>
</Grid>
</SplitView.Pane>
</SplitView>
</Page>