2020-04-08 01:19:14 +08: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-23 00:45:48 +08:00
|
|
|
|
using Microsoft.PowerToys.Settings.UI.Library;
|
|
|
|
|
using Microsoft.PowerToys.Settings.UI.Library.Utilities;
|
|
|
|
|
using Microsoft.PowerToys.Settings.UI.Library.ViewModels;
|
2020-03-31 20:32:22 +08:00
|
|
|
|
using Windows.UI.Xaml.Controls;
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.PowerToys.Settings.UI.Views
|
|
|
|
|
{
|
|
|
|
|
public sealed partial class FancyZonesPage : Page
|
|
|
|
|
{
|
2020-07-18 02:01:46 +08:00
|
|
|
|
private FancyZonesViewModel ViewModel { get; set; }
|
2020-03-31 20:32:22 +08:00
|
|
|
|
|
|
|
|
|
public FancyZonesPage()
|
|
|
|
|
{
|
2020-08-20 06:59:10 +08:00
|
|
|
|
InitializeComponent();
|
2020-09-22 01:14:44 +08:00
|
|
|
|
var settingsUtils = new SettingsUtils(new SystemIOProvider());
|
2020-09-24 04:20:32 +08:00
|
|
|
|
ViewModel = new FancyZonesViewModel(SettingsRepository<GeneralSettings>.GetInstance(settingsUtils), SettingsRepository<FancyZonesSettings>.GetInstance(settingsUtils), ShellPage.SendDefaultIPCMessage);
|
2020-08-19 05:46:32 +08:00
|
|
|
|
DataContext = ViewModel;
|
2020-03-31 20:32:22 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|