2025-02-10 20:53:40 +08:00
|
|
|
<ui:FluentWindow
|
2025-04-24 20:56:44 +08:00
|
|
|
x:Class="WPFluent.Gallery.NavigateWindowEx"
|
2025-02-10 20:53:40 +08:00
|
|
|
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"
|
2025-04-24 20:56:44 +08:00
|
|
|
MinWidth="812"
|
|
|
|
|
MinHeight="456"
|
2025-02-10 20:53:40 +08:00
|
|
|
mc:Ignorable="d"
|
|
|
|
|
d:DesignHeight="300"
|
|
|
|
|
d:DesignWidth="200"
|
2025-04-24 20:56:44 +08:00
|
|
|
Title="导航"
|
2025-02-10 20:53:40 +08:00
|
|
|
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}"
|
2025-04-24 20:56:44 +08:00
|
|
|
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}">
|
2025-02-10 20:53:40 +08:00
|
|
|
<Grid>
|
|
|
|
|
<ui:TitleBar
|
|
|
|
|
x:Name="TitleBar"
|
2025-04-24 20:56:44 +08:00
|
|
|
Margin="42,0,0,0"
|
|
|
|
|
Title="标题" />
|
2025-02-10 20:53:40 +08:00
|
|
|
<ui:NavigationView
|
|
|
|
|
x:Name="RootNavigation"
|
2025-04-24 20:56:44 +08:00
|
|
|
BreadcrumbBar="{Binding ElementName=BreadcrumbBar}"
|
2025-02-10 20:53:40 +08:00
|
|
|
IsBackButtonVisible="Collapsed"
|
|
|
|
|
IsPaneOpen="False"
|
2025-04-24 20:56:44 +08:00
|
|
|
OpenPaneLength="160"
|
|
|
|
|
PaneDisplayMode="Left"
|
2025-02-10 20:53:40 +08:00
|
|
|
TitleBar="{Binding ElementName=TitleBar, Mode=OneWay}">
|
|
|
|
|
<ui:NavigationView.MenuItems>
|
2025-04-24 20:56:44 +08:00
|
|
|
<ui:NavigationViewItem Content="Dashboard" Icon="{ui:SymbolIcon AppGeneric24}" />
|
|
|
|
|
<ui:NavigationViewItem Content="ButtonPage" Icon="{ui:SymbolIcon Button20}" />
|
|
|
|
|
<ui:NavigationViewItem Content="RadioButtonPage" Icon="{ui:SymbolIcon RadioButton24}" />
|
|
|
|
|
<ui:NavigationViewItem Content="Summary" Icon="{ui:SymbolIcon SlideSearch24}" />
|
|
|
|
|
<ui:NavigationViewItem Content="Event monitor" Icon="{ui:SymbolIcon DesktopPulse24}" />
|
2025-02-10 20:53:40 +08:00
|
|
|
</ui:NavigationView.MenuItems>
|
|
|
|
|
<ui:NavigationView.FooterMenuItems>
|
2025-04-24 20:56:44 +08:00
|
|
|
<ui:NavigationViewItem Content="Settings" Icon="{ui:SymbolIcon Settings24}" />
|
|
|
|
|
<ui:NavigationViewItem Content="About" Icon="{ui:SymbolIcon Info24}">
|
2025-02-10 20:53:40 +08:00
|
|
|
<ui:NavigationViewItem.InfoBadge>
|
|
|
|
|
<ui:InfoBadge
|
|
|
|
|
x:Name="UpdatesNotifier"
|
|
|
|
|
Width="6"
|
|
|
|
|
Height="6"
|
|
|
|
|
Margin="0 6 6 0"
|
2025-04-24 20:56:44 +08:00
|
|
|
Severity="Attention"
|
|
|
|
|
Style="{DynamicResource DotInfoBadgeStyle}"
|
|
|
|
|
Visibility="Collapsed" />
|
2025-02-10 20:53:40 +08:00
|
|
|
</ui:NavigationViewItem.InfoBadge>
|
|
|
|
|
</ui:NavigationViewItem>
|
|
|
|
|
</ui:NavigationView.FooterMenuItems>
|
|
|
|
|
<ui:NavigationView.Header>
|
2025-04-24 20:56:44 +08:00
|
|
|
<ui:BreadcrumbBar x:Name="BreadcrumbBar" Margin="12 10 0 0">
|
2025-02-10 20:53:40 +08:00
|
|
|
<ui:BreadcrumbBar.ItemTemplate>
|
2025-04-24 20:56:44 +08:00
|
|
|
<DataTemplate DataType="{x:Type ui:NavigationViewBreadcrumbItem}">
|
|
|
|
|
<ui:TextBlock FontTypography="Subtitle" Text="{Binding Content}" />
|
2025-02-10 20:53:40 +08:00
|
|
|
</DataTemplate>
|
|
|
|
|
</ui:BreadcrumbBar.ItemTemplate>
|
|
|
|
|
</ui:BreadcrumbBar>
|
|
|
|
|
</ui:NavigationView.Header>
|
|
|
|
|
<ui:NavigationView.ContentOverlay>
|
2025-04-24 20:56:44 +08:00
|
|
|
<ui:SnackbarPresenter x:Name="RootSnackbar" />
|
2025-02-10 20:53:40 +08:00
|
|
|
</ui:NavigationView.ContentOverlay>
|
|
|
|
|
</ui:NavigationView>
|
2025-04-24 20:56:44 +08:00
|
|
|
<ContentPresenter x:Name="RootContentDialog" />
|
2025-02-10 20:53:40 +08:00
|
|
|
</Grid>
|
|
|
|
|
</ui:FluentWindow>
|