using System.Collections.ObjectModel; using Wpf.Ui.Controls; namespace Seyounth.Hyosung.UI.ViewModels.Windows { public partial class MainWindowViewModel : ObservableObject { [ObservableProperty] private string _applicationTitle = "WPF UI - Seyounth.Hyosung.UI"; [ObservableProperty] private ObservableCollection _menuItems = new() { new NavigationViewItem() { Content = "主页", Icon = new SymbolIcon { Symbol = SymbolRegular.Home24 }, TargetPageType = typeof(Views.Pages.DashboardPage) }, new NavigationViewItem() { Content = "产品管理", Icon = new SymbolIcon { Symbol = SymbolRegular.Production24 }, TargetPageType = typeof(Views.Pages.DataPage) }, new NavigationViewItem() { Content = "辅料管理", Icon = new SymbolIcon { Symbol = SymbolRegular.Production24 }, TargetPageType = typeof(Views.Pages.PalletManagementPage) }, new NavigationViewItem() { Content = "标签管理", Icon = new SymbolIcon { Symbol = SymbolRegular.Print24 }, TargetPageType = typeof(Views.Pages.DataPage) }, new NavigationViewItem() { Content = "入库管理", Icon = new SymbolIcon { Symbol = SymbolRegular.DataHistogram24 }, TargetPageType = typeof(Views.Pages.DataPage) }, new NavigationViewItem() { Content = "AGV库位管理", Icon = new SymbolIcon { Symbol = SymbolRegular.DataHistogram24 }, TargetPageType = typeof(Views.Pages.DataPage) } }; [ObservableProperty] private ObservableCollection _footerMenuItems = new() { new NavigationViewItem() { Content = "Settings", Icon = new SymbolIcon { Symbol = SymbolRegular.Settings24 }, TargetPageType = typeof(Views.Pages.SettingsPage) } }; [ObservableProperty] private ObservableCollection _trayMenuItems = new() { new MenuItem { Header = "Home", Tag = "tray_home" } }; } }