83 lines
3.4 KiB
XML
83 lines
3.4 KiB
XML
<ui:FluentWindow
|
|
x:Class="WPFluent.Gallery.NavigateWindow"
|
|
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
|
|
Width="800"
|
|
Height="450"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="300"
|
|
d:DesignWidth="200"
|
|
MinWidth="812"
|
|
MinHeight="456"
|
|
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}"
|
|
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
|
Title="导航">
|
|
<Grid>
|
|
<ui:TitleBar
|
|
x:Name="TitleBar"
|
|
Title="标题"
|
|
Margin="42,0,0,0" />
|
|
<ui:NavigationView
|
|
x:Name="RootNavigation"
|
|
IsBackButtonVisible="Collapsed"
|
|
PaneDisplayMode="Left"
|
|
OpenPaneLength="160"
|
|
IsPaneOpen="False"
|
|
BreadcrumbBar="{Binding ElementName=BreadcrumbBar}"
|
|
TitleBar="{Binding ElementName=TitleBar, Mode=OneWay}">
|
|
<ui:NavigationView.MenuItems>
|
|
<ui:NavigationViewItem
|
|
Content="Dashboard"
|
|
Icon="{ui:SymbolIcon AppGeneric24}" />
|
|
<ui:NavigationViewItem
|
|
Content="Summary"
|
|
Icon="{ui:SymbolIcon SlideSearch24}" />
|
|
<ui:NavigationViewItem
|
|
Content="Event monitor"
|
|
Icon="{ui:SymbolIcon DesktopPulse24}" />
|
|
</ui:NavigationView.MenuItems>
|
|
<ui:NavigationView.FooterMenuItems>
|
|
<ui:NavigationViewItem
|
|
Content="Settings"
|
|
Icon="{ui:SymbolIcon Settings24}" />
|
|
<ui:NavigationViewItem
|
|
Content="About"
|
|
Icon="{ui:SymbolIcon Info24}">
|
|
<ui:NavigationViewItem.InfoBadge>
|
|
<ui:InfoBadge
|
|
x:Name="UpdatesNotifier"
|
|
Severity="Attention"
|
|
Width="6"
|
|
Height="6"
|
|
Margin="0 6 6 0"
|
|
Visibility="Collapsed"
|
|
Style="{DynamicResource DotInfoBadgeStyle}" />
|
|
</ui:NavigationViewItem.InfoBadge>
|
|
</ui:NavigationViewItem>
|
|
</ui:NavigationView.FooterMenuItems>
|
|
<ui:NavigationView.Header>
|
|
<ui:BreadcrumbBar
|
|
x:Name="BreadcrumbBar"
|
|
Margin="12 10 0 0">
|
|
<ui:BreadcrumbBar.ItemTemplate>
|
|
<DataTemplate
|
|
DataType="{x:Type ui:NavigationViewBreadcrumbItem}">
|
|
<ui:TextBlock
|
|
FontTypography="Subtitle"
|
|
Text="{Binding Content}" />
|
|
</DataTemplate>
|
|
</ui:BreadcrumbBar.ItemTemplate>
|
|
</ui:BreadcrumbBar>
|
|
</ui:NavigationView.Header>
|
|
<ui:NavigationView.ContentOverlay>
|
|
<ui:SnackbarPresenter
|
|
x:Name="RootSnackbar" />
|
|
</ui:NavigationView.ContentOverlay>
|
|
</ui:NavigationView>
|
|
<ContentPresenter
|
|
x:Name="RootContentDialog" />
|
|
</Grid>
|
|
</ui:FluentWindow> |