2021-06-23 20:48:54 +08:00
|
|
|
// Copyright (c) Microsoft Corporation
|
2020-04-08 01:19:14 +08:00
|
|
|
// 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.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-11-03 01:33:43 +08:00
|
|
|
var settingsUtils = new SettingsUtils();
|
2021-06-23 20:48:54 +08:00
|
|
|
ViewModel = new FancyZonesViewModel(settingsUtils, 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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|