2021-10-22 14:30:18 +02: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.
|
|
|
|
|
|
|
|
|
|
using Microsoft.PowerToys.Settings.UI.Library;
|
|
|
|
|
using Microsoft.PowerToys.Settings.UI.Library.ViewModels;
|
|
|
|
|
using Windows.UI.Xaml.Controls;
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.PowerToys.Settings.UI.Views
|
|
|
|
|
{
|
|
|
|
|
public sealed partial class MouseUtilsPage : Page
|
|
|
|
|
{
|
|
|
|
|
private MouseUtilsViewModel ViewModel { get; set; }
|
|
|
|
|
|
|
|
|
|
public MouseUtilsPage()
|
|
|
|
|
{
|
|
|
|
|
var settingsUtils = new SettingsUtils();
|
2021-11-22 14:31:31 +01:00
|
|
|
|
ViewModel = new MouseUtilsViewModel(settingsUtils, SettingsRepository<GeneralSettings>.GetInstance(settingsUtils), SettingsRepository<FindMyMouseSettings>.GetInstance(settingsUtils), SettingsRepository<MouseHighlighterSettings>.GetInstance(settingsUtils), ShellPage.SendDefaultIPCMessage);
|
2021-10-22 14:30:18 +02:00
|
|
|
|
DataContext = ViewModel;
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|