mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
Added in generic ViewModel
This commit is contained in:
committed by
Lavius Motileng
parent
e2c7941542
commit
3f5a54f9f1
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
|
||||
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();
|
||||
DataContext = ViewModel;
|
||||
ViewModel.Initialize(shellFrame, navigationView, KeyboardAccelerators);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user