2020-03-12 01:43:32 +08:00
|
|
|
|
using System;
|
2020-03-12 02:37:27 +08:00
|
|
|
|
using Microsoft.PowerToys.Settings.UI.Activation;
|
|
|
|
|
using Microsoft.PowerToys.Settings.UI.Helpers;
|
|
|
|
|
using Microsoft.PowerToys.Settings.UI.Services;
|
2020-03-12 01:43:32 +08:00
|
|
|
|
using Microsoft.PowerToys.Settings.UI.ViewModels;
|
|
|
|
|
|
|
|
|
|
using Windows.UI.Xaml.Controls;
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.PowerToys.Settings.UI.Views
|
|
|
|
|
{
|
|
|
|
|
// TODO WTS: Change the icons and titles for all NavigationViewItems in ShellPage.xaml.
|
|
|
|
|
public sealed partial class ShellPage : UserControl
|
|
|
|
|
{
|
|
|
|
|
public ShellViewModel ViewModel { get; } = new ShellViewModel();
|
|
|
|
|
|
|
|
|
|
public ShellPage()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2020-03-12 02:37:27 +08:00
|
|
|
|
|
2020-03-12 01:43:32 +08:00
|
|
|
|
DataContext = ViewModel;
|
|
|
|
|
ViewModel.Initialize(shellFrame, navigationView, KeyboardAccelerators);
|
2020-03-12 02:37:27 +08:00
|
|
|
|
NavigationService.Navigate(typeof(MainPage));
|
2020-03-12 01:43:32 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|