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-10-22 09:45:48 -07:00
|
|
|
|
using Microsoft.PowerToys.Settings.UI.Library;
|
|
|
|
|
|
using Microsoft.PowerToys.Settings.UI.Library.Utilities;
|
|
|
|
|
|
using Microsoft.PowerToys.Settings.UI.Library.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-11-02 18:33:43 +01:00
|
|
|
|
var settingsUtils = new SettingsUtils();
|
2020-10-09 14:45:30 -07:00
|
|
|
|
ViewModel = new PowerPreviewViewModel(SettingsRepository<PowerPreviewSettings>.GetInstance(settingsUtils), SettingsRepository<GeneralSettings>.GetInstance(settingsUtils), ShellPage.SendDefaultIPCMessage);
|
2020-08-19 15:59:10 -07:00
|
|
|
|
DataContext = ViewModel;
|
2020-03-30 02:02:25 -07:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|