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.
|
|
|
|
|
|
|
2023-01-31 00:00:11 +01:00
|
|
|
|
using Microsoft.PowerToys.Settings.UI.Helpers;
|
2020-10-22 09:45:48 -07:00
|
|
|
|
using Microsoft.PowerToys.Settings.UI.Library;
|
2022-10-26 14:02:31 +01:00
|
|
|
|
using Microsoft.PowerToys.Settings.UI.ViewModels;
|
2022-04-19 22:00:28 +02:00
|
|
|
|
using Microsoft.UI.Xaml.Controls;
|
2020-03-27 16:58:53 +01:00
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.PowerToys.Settings.UI.Views
|
|
|
|
|
|
{
|
2023-01-31 00:00:11 +01:00
|
|
|
|
public sealed partial class PowerRenamePage : Page, IRefreshablePage
|
2020-03-27 16:58:53 +01:00
|
|
|
|
{
|
2020-07-17 11:01:46 -07:00
|
|
|
|
private PowerRenameViewModel ViewModel { get; set; }
|
2020-03-27 16:58:53 +01:00
|
|
|
|
|
|
|
|
|
|
public PowerRenamePage()
|
|
|
|
|
|
{
|
2020-08-19 15:59:10 -07:00
|
|
|
|
InitializeComponent();
|
2020-11-02 18:33:43 +01:00
|
|
|
|
var settingsUtils = new SettingsUtils();
|
2020-09-23 13:20:32 -07:00
|
|
|
|
ViewModel = new PowerRenameViewModel(settingsUtils, SettingsRepository<GeneralSettings>.GetInstance(settingsUtils), ShellPage.SendDefaultIPCMessage);
|
2020-07-17 11:01:46 -07:00
|
|
|
|
|
|
|
|
|
|
DataContext = ViewModel;
|
2020-04-02 06:08:56 -07:00
|
|
|
|
}
|
2023-01-31 00:00:11 +01:00
|
|
|
|
|
|
|
|
|
|
public void RefreshEnabledState()
|
|
|
|
|
|
{
|
|
|
|
|
|
ViewModel.RefreshEnabledState();
|
|
|
|
|
|
}
|
2020-03-27 16:58:53 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|