[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

@@ -76,7 +76,7 @@
HorizontalAlignment="Left"
Margin="{StaticResource SmallTopBottomMargin}"
RelativePanel.Below="DescriptionPanel">
<Image Source="ms-appx:///Assets/Modules/PowerPreview.png" />
<Image Source="https://aka.ms/powerToysPowerPreviewSettingImage" />
</Border>
<StackPanel x:Name="LinksPanel"
@@ -86,7 +86,7 @@
<HyperlinkButton NavigateUri="https://aka.ms/PowerToysOverview_FileExplorerAddOns">
<TextBlock x:Uid="Module_overview" />
</HyperlinkButton>
<HyperlinkButton NavigateUri="https://aka.ms/powerToysGiveFeedback">
<HyperlinkButton NavigateUri="https://github.com/microsoft/PowerToys/issues">
<TextBlock x:Uid="Give_Feedback" />
</HyperlinkButton>
</StackPanel>

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;
}
}
}