2020-04-07 10:19:14 -07:00
|
|
|
|
// Copyright (c) Microsoft Corporation
|
|
|
|
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
|
|
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
|
|
|
2020-09-21 10:14:44 -07:00
|
|
|
|
using Microsoft.PowerToys.Settings.UI.Lib;
|
|
|
|
|
|
using Microsoft.PowerToys.Settings.UI.Lib.Utilities;
|
2020-08-17 13:10:56 -07:00
|
|
|
|
using Microsoft.PowerToys.Settings.UI.Lib.ViewModels;
|
2020-03-30 02:02:25 -07:00
|
|
|
|
using Windows.UI.Xaml.Controls;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.PowerToys.Settings.UI.Views
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// An empty page that can be used on its own or navigated to within a Frame.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public sealed partial class PowerPreviewPage : Page
|
|
|
|
|
|
{
|
2020-08-19 15:59:10 -07:00
|
|
|
|
public PowerPreviewViewModel ViewModel { get; set; }
|
2020-03-30 02:02:25 -07:00
|
|
|
|
|
|
|
|
|
|
public PowerPreviewPage()
|
|
|
|
|
|
{
|
2020-08-19 15:59:10 -07:00
|
|
|
|
InitializeComponent();
|
2020-09-21 10:14:44 -07:00
|
|
|
|
var settingsUtils = new SettingsUtils(new SystemIOProvider());
|
2020-09-23 13:20:32 -07:00
|
|
|
|
ViewModel = new PowerPreviewViewModel(SettingsRepository<PowerPreviewSettings>.GetInstance(settingsUtils), ShellPage.SendDefaultIPCMessage);
|
2020-08-19 15:59:10 -07:00
|
|
|
|
DataContext = ViewModel;
|
2020-03-30 02:02:25 -07:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|