[Settings] Migrate File Explorer Preview Settings (#5785)

* added MSTest project

* migrate file explorer preview settings

* updated test file

* fixed build
This commit is contained in:
Nkateko
2020-08-17 13:10:56 -07:00
committed by GitHub
parent 8bf730baae
commit 7af4ffe341
5 changed files with 449 additions and 330 deletions

View File

@@ -2,7 +2,7 @@
// 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.ViewModels;
using Microsoft.PowerToys.Settings.UI.Lib.ViewModels;
using Windows.UI.Xaml.Controls;
namespace Microsoft.PowerToys.Settings.UI.Views
@@ -12,13 +12,13 @@ namespace Microsoft.PowerToys.Settings.UI.Views
/// </summary>
public sealed partial class PowerPreviewPage : Page
{
public PowerPreviewViewModel ViewModel { get; set; }
public PowerPreviewViewModel viewModel { get; set; }
public PowerPreviewPage()
{
InitializeComponent();
ViewModel = new PowerPreviewViewModel();
PowerPreviewView.DataContext = ViewModel;
this.InitializeComponent();
viewModel = new PowerPreviewViewModel(ShellPage.SendDefaultIPCMessage);
DataContext = viewModel;
}
}
}