// This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. // Copyright (C) Leszek Pomianowski and WPF UI Contributors. // All Rights Reserved. using System.Collections.ObjectModel; using Wpf.Ui.Controls; namespace DownloadManager.ViewModels.Windows; public partial class MainWindowViewModel : ObservableObject { [ObservableProperty] private string _applicationTitle = "WPF UI - Downloader"; [ObservableProperty] private ObservableCollection _menuItems = new() { new NavigationViewItem() { Content = "Home", Icon = new SymbolIcon { Symbol = SymbolRegular.Home24 }, TargetPageType = typeof(Views.Pages.DashboardPage) }, new NavigationViewItem() { Content = "Data", 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" } }; }