整理控件库

This commit is contained in:
GG Z
2025-05-05 17:04:06 +08:00
parent 74532b77be
commit 3eaad7566e
283 changed files with 2156 additions and 17846 deletions

View File

@@ -12,59 +12,7 @@ namespace WPFluent.Gallery.ViewModels.Windows;
public partial class MainWindowViewModel : ViewModel
{
[ObservableProperty]
private string applicationTitle = "WPF UI Gallery";
[ObservableProperty]
private ObservableCollection<object> menuItems =
[
new NavigationViewItem("Home", SymbolRegular.Home24, typeof(DashboardPage)),
new NavigationViewItem()
{
Content = "Design guidance",
Icon = new SymbolIcon { Symbol = SymbolRegular.DesignIdeas24 },
MenuItemsSource = new object[]
{
new NavigationViewItem("Typography", SymbolRegular.TextFont24, typeof(TypographyPage)),
new NavigationViewItem("Icons", SymbolRegular.Diversity24, typeof(IconsPage)),
new NavigationViewItem("Colors", SymbolRegular.Color24, typeof(ColorsPage)),
},
},
//new NavigationViewItem("All samples", SymbolRegular.List24, typeof(AllControlsPage)),
new NavigationViewItemSeparator(),
new NavigationViewItem("Basic Input", SymbolRegular.CheckboxChecked24, typeof(BasicInputPage)),
new NavigationViewItem
{
Content = "Collections",
Icon = new SymbolIcon { Symbol = SymbolRegular.Table24 },
TargetPageType = typeof(CollectionsPage),
},
new NavigationViewItem("Date & time", SymbolRegular.CalendarClock24, typeof(DateAndTimePage)),
new NavigationViewItem("Dialogs & flyouts", SymbolRegular.Chat24, typeof(DialogsAndFlyoutsPage)),
#if DEBUG
new NavigationViewItem("Layout", SymbolRegular.News24, typeof(LayoutPage)),
#endif
new NavigationViewItem
{
Content = "Media",
Icon = new SymbolIcon { Symbol = SymbolRegular.PlayCircle24 },
TargetPageType = typeof(MediaPage),
},
new NavigationViewItem("Navigation", SymbolRegular.Navigation24, typeof(NavigationPage)),
new NavigationViewItem(
"Status & info",
SymbolRegular.ChatBubblesQuestion24,
typeof(StatusAndInfoPage)
),
new NavigationViewItem("Text", SymbolRegular.DrawText24, typeof(TextPage)),
new NavigationViewItem("System", SymbolRegular.Desktop24, typeof(OpSystemPage)),
new NavigationViewItem("Windows", SymbolRegular.WindowApps24, typeof(WindowsPage)),
];
[ObservableProperty]
private ObservableCollection<object> footerMenuItems =
[
new NavigationViewItem("Settings", SymbolRegular.Settings24, typeof(SettingsPage)),
];
private string applicationTitle = "WPFluent";
[ObservableProperty]
private ObservableCollection<WPFluent.Controls.MenuItem> trayMenuItems =