C# 创建一个类似uwp电子邮件应用程序one的设置页面
我想创建一个类似于uwp电子邮件应用程序中使用的设置页面: 我希望有一些像第一张图片中那样的常规设置,因此当我单击其中任何一个时,页面将导航到所选的设置 当前我正在使用my MainPage.xaml中的导航视图,如下所示:C# 创建一个类似uwp电子邮件应用程序one的设置页面,c#,xaml,uwp,C#,Xaml,Uwp,我想创建一个类似于uwp电子邮件应用程序中使用的设置页面: 我希望有一些像第一张图片中那样的常规设置,因此当我单击其中任何一个时,页面将导航到所选的设置 当前我正在使用my MainPage.xaml中的导航视图,如下所示: <Page x:Class="TestApp.UWP.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns
<Page
x:Class="TestApp.UWP.MainPage"
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:TestApp.UWP"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
x:Name="MainContentPage"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
DataContext="{Binding Home, Source={StaticResource Locator}}"
mc:Ignorable="d">
<NavigationView
x:Name="NavigationView"
Background="{ThemeResource SystemControlBaseLowAcrylicWindowBrush}"
CompactModeThresholdWidth="1280"
ExpandedModeThresholdWidth="1280"
IsBackButtonVisible="Collapsed"
IsBackEnabled="False"
IsSettingsVisible="True"
MenuItemsSource="{Binding NavigationItems, Mode=OneWay}"
SelectedItem="{Binding SelectedItem, Mode=TwoWay}">
<NavigationView.PaneFooter>
<StackPanel>
<Button
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch"
Background="Transparent"
Command="{Binding LogoutCommand}"
ToolTipService.ToolTip="Sign out">
<Grid Height="40" Margin="-9,0,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="48" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<SymbolIcon
Grid.Column="0"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Symbol="People" />
<TextBlock
Grid.Column="1"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Text="Sign out" />
</Grid>
</Button>
</StackPanel>
</NavigationView.PaneFooter>
</NavigationView>
</Page>
我想我可以使用一个框架,其中包含常规设置按钮和绑定到它们的某种命令/事件,因此当我单击其中任何一个按钮时,命令/事件将调用frame.Navigate(pageType)
方法
问题/疑问是:
非常感谢,这正是我想要的