2025-04-07 23:25:45 +08:00

70 lines
2.4 KiB
C#

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<object> _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<object> _footerMenuItems = new()
{
new NavigationViewItem()
{
Content = "Settings",
Icon = new SymbolIcon { Symbol = SymbolRegular.Settings24 },
TargetPageType = typeof(Views.Pages.SettingsPage)
}
};
[ObservableProperty]
private ObservableCollection<MenuItem> _trayMenuItems = new()
{
new MenuItem { Header = "Home", Tag = "tray_home" }
};
}
}