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-27 23:58:53 +08:00
|
|
|
|
using Windows.UI.Xaml.Controls;
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.PowerToys.Settings.UI.Views
|
|
|
|
|
{
|
|
|
|
|
public sealed partial class ShortcutGuidePage : Page
|
|
|
|
|
{
|
2020-07-18 02:01:46 +08:00
|
|
|
|
private ShortcutGuideViewModel ViewModel { get; set; }
|
2020-03-27 23:58:53 +08:00
|
|
|
|
|
|
|
|
|
public ShortcutGuidePage()
|
|
|
|
|
{
|
2020-04-11 06:22:07 +08:00
|
|
|
|
InitializeComponent();
|
2020-09-24 04:20:32 +08:00
|
|
|
|
|
2020-11-03 01:33:43 +08:00
|
|
|
|
var settingsUtils = new SettingsUtils();
|
2020-09-24 04:20:32 +08:00
|
|
|
|
ViewModel = new ShortcutGuideViewModel(SettingsRepository<GeneralSettings>.GetInstance(settingsUtils), SettingsRepository<ShortcutGuideSettings>.GetInstance(settingsUtils), ShellPage.SendDefaultIPCMessage);
|
2020-07-18 02:01:46 +08:00
|
|
|
|
DataContext = ViewModel;
|
2020-03-27 23:58:53 +08:00
|
|
|
|
}
|
2021-02-09 19:11:51 +08:00
|
|
|
|
|
|
|
|
|
private void OpenColorsSettings_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
Helpers.StartProcessHelper.Start(Helpers.StartProcessHelper.ColorsSettings);
|
|
|
|
|
}
|
2020-03-27 23:58:53 +08:00
|
|
|
|
}
|
|
|
|
|
}
|