Files
ShrlAlgoToolkit/WPFluent.Gallery/Views/Windows/MainWindow.xaml

126 lines
5.5 KiB
Plaintext
Raw Normal View History

2025-04-24 20:56:44 +08:00
<ui:FluentWindow
x:Class="WPFluent.Gallery.Views.Windows.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:WPFluent.Gallery.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:WPFluent.Gallery.Views.Windows"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:tray="https://github.com/ShrlAlgo/WPFluent/tray"
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
Width="1450"
2025-05-05 17:04:06 +08:00
Height="800"
2025-04-24 20:56:44 +08:00
MinWidth="900"
2025-05-05 17:04:06 +08:00
mc:Ignorable="d"
2025-04-24 20:56:44 +08:00
d:DataContext="{d:DesignInstance local:MainWindow,
IsDesignTimeCreatable=False}"
d:DesignHeight="650"
d:DesignWidth="1000"
ExtendsContentIntoTitleBar="True"
2025-05-05 17:04:06 +08:00
Title="{Binding ViewModel.ApplicationTitle, Mode=OneWay}"
2025-04-24 20:56:44 +08:00
WindowBackdropType="Mica"
WindowCornerPreference="Default"
2025-05-05 17:04:06 +08:00
WindowStartupLocation="CenterScreen">
<!--<ui:FluentWindow.InputBindings>
2025-04-24 20:56:44 +08:00
<KeyBinding
Key="F"
Command="{Binding ElementName=AutoSuggestBox, Path=FocusCommand}"
Modifiers="Control" />
2025-05-05 17:04:06 +08:00
</ui:FluentWindow.InputBindings>-->
2025-04-24 20:56:44 +08:00
<!--<ui:FluentWindow.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ui:ThemesDictionary Theme="Light" />
<ui:ControlsDictionary />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</ui:FluentWindow.Resources>-->
2025-05-05 17:04:06 +08:00
<DockPanel>
2025-04-24 20:56:44 +08:00
<ui:TitleBar
x:Name="TitleBar"
2025-05-05 17:04:06 +08:00
CloseWindowByDoubleClickOnIcon="True"
DockPanel.Dock="Top" Title="{Binding ViewModel.ApplicationTitle, Mode=OneWay}">
2025-04-24 20:56:44 +08:00
<ui:TitleBar.Icon>
<ui:ImageIcon Source="pack://application:,,,/WPFluent.Gallery;component/wpfui.png" />
</ui:TitleBar.Icon>
</ui:TitleBar>
2025-05-05 17:04:06 +08:00
<TabControl x:Name="NavigationView" Margin="5">
<TabItem Header="Icons">
<Frame Source="pack://application:,,,/WPFluent.Gallery;component/Views/Pages/DesignGuidance/IconsPage.xaml" />
</TabItem>
<TabItem Header="Colors">
<ScrollViewer>
<Frame Source="pack://application:,,,/WPFluent.Gallery;component/Views/Pages/DesignGuidance/ColorsPage.xaml" />
</ScrollViewer>
</TabItem>
<TabItem Header="Typography">
<ScrollViewer>
<Frame Source="pack://application:,,,/WPFluent.Gallery;component/Views/Pages/DesignGuidance/TypographyPage.xaml" />
</ScrollViewer>
</TabItem>
<TabItem Header="BasicInput">
<ScrollViewer>
<Frame Source="pack://application:,,,/WPFluent.Gallery;component/Views/Pages/BasicInputPage.xaml" />
</ScrollViewer>
</TabItem>
<TabItem Header="Collections">
<ScrollViewer>
<Frame Source="pack://application:,,,/WPFluent.Gallery;component/Views/Pages/CollectionsPage.xaml" />
</ScrollViewer>
</TabItem>
<TabItem Header="DateAndTime">
<ScrollViewer>
<Frame Source="pack://application:,,,/WPFluent.Gallery;component/Views/Pages/DateAndTimePage.xaml" />
</ScrollViewer>
</TabItem>
<TabItem Header="DialogsAndFlyouts">
<ScrollViewer>
<Frame Source="pack://application:,,,/WPFluent.Gallery;component/Views/Pages/DialogsAndFlyoutsPage.xaml" />
</ScrollViewer>
</TabItem>
<TabItem Header="Layout">
<ScrollViewer>
<Frame Source="pack://application:,,,/WPFluent.Gallery;component/Views/Pages/LayoutPage.xaml" />
</ScrollViewer>
</TabItem>
<TabItem Header="Media">
<ScrollViewer>
<Frame Source="pack://application:,,,/WPFluent.Gallery;component/Views/Pages/MediaPage.xaml" />
</ScrollViewer>
</TabItem>
<TabItem Header="Navigation">
<ScrollViewer>
<Frame Source="pack://application:,,,/WPFluent.Gallery;component/Views/Pages/NavigationPage.xaml" />
</ScrollViewer>
</TabItem>
<TabItem Header="OpSystem">
<ScrollViewer>
<Frame Source="pack://application:,,,/WPFluent.Gallery;component/Views/Pages/OpSystemPage.xaml" />
</ScrollViewer>
</TabItem>
<TabItem Header="Settings">
<ScrollViewer>
<Frame Source="pack://application:,,,/WPFluent.Gallery;component/Views/Pages/SettingsPage.xaml" />
</ScrollViewer>
</TabItem>
<TabItem Header="StatusAndInfo">
<ScrollViewer>
<Frame Source="pack://application:,,,/WPFluent.Gallery;component/Views/Pages/StatusAndInfoPage.xaml" />
</ScrollViewer>
</TabItem>
<TabItem Header="Text">
<ScrollViewer>
<Frame Source="pack://application:,,,/WPFluent.Gallery;component/Views/Pages/TextPage.xaml" />
</ScrollViewer>
</TabItem>
</TabControl>
<!--<ContentPresenter x:Name="RootContentDialog" Grid.Row="0" />-->
2025-04-24 20:56:44 +08:00
2025-05-05 17:04:06 +08:00
</DockPanel>
</ui:FluentWindow>