From b351e60d52fb34534b87404498be01ffc34898a2 Mon Sep 17 00:00:00 2001 From: Niels Laute Date: Thu, 12 Mar 2020 07:25:24 +0100 Subject: [PATCH] Added a General tab page with XAML layout and controls according to spec (#1546) --- .../Microsoft.PowerToys.Settings.UI.csproj | 8 ++++ .../Strings/en-us/Resources.resw | 6 ++- .../ViewModels/GeneralViewModel.cs | 13 ++++++ .../Views/GeneralPage.xaml | 45 +++++++++++++++++++ .../Views/GeneralPage.xaml.cs | 29 ++++++++++++ .../Views/ShellPage.xaml | 5 +++ 6 files changed, 105 insertions(+), 1 deletion(-) create mode 100644 src/core/Microsoft.PowerToys.Settings.UI/ViewModels/GeneralViewModel.cs create mode 100644 src/core/Microsoft.PowerToys.Settings.UI/Views/GeneralPage.xaml create mode 100644 src/core/Microsoft.PowerToys.Settings.UI/Views/GeneralPage.xaml.cs diff --git a/src/core/Microsoft.PowerToys.Settings.UI/Microsoft.PowerToys.Settings.UI.csproj b/src/core/Microsoft.PowerToys.Settings.UI/Microsoft.PowerToys.Settings.UI.csproj index e32c2aa797..82b1f9c41b 100644 --- a/src/core/Microsoft.PowerToys.Settings.UI/Microsoft.PowerToys.Settings.UI.csproj +++ b/src/core/Microsoft.PowerToys.Settings.UI/Microsoft.PowerToys.Settings.UI.csproj @@ -133,11 +133,15 @@ + + + GeneralPage.xaml + MainPage.xaml @@ -212,6 +216,10 @@ MSBuild:Compile Designer + + Designer + MSBuild:Compile + MSBuild:Compile Designer diff --git a/src/core/Microsoft.PowerToys.Settings.UI/Strings/en-us/Resources.resw b/src/core/Microsoft.PowerToys.Settings.UI/Strings/en-us/Resources.resw index 6e48d8371b..229eadb097 100644 --- a/src/core/Microsoft.PowerToys.Settings.UI/Strings/en-us/Resources.resw +++ b/src/core/Microsoft.PowerToys.Settings.UI/Strings/en-us/Resources.resw @@ -141,4 +141,8 @@ Test3 Navigation view item name for Test3 - + + General + Navigation view item name for General + + \ No newline at end of file diff --git a/src/core/Microsoft.PowerToys.Settings.UI/ViewModels/GeneralViewModel.cs b/src/core/Microsoft.PowerToys.Settings.UI/ViewModels/GeneralViewModel.cs new file mode 100644 index 0000000000..99962c6524 --- /dev/null +++ b/src/core/Microsoft.PowerToys.Settings.UI/ViewModels/GeneralViewModel.cs @@ -0,0 +1,13 @@ +using System; + +using Microsoft.PowerToys.Settings.UI.Helpers; + +namespace Microsoft.PowerToys.Settings.UI.ViewModels +{ + public class GeneralViewModel : Observable + { + public GeneralViewModel() + { + } + } +} diff --git a/src/core/Microsoft.PowerToys.Settings.UI/Views/GeneralPage.xaml b/src/core/Microsoft.PowerToys.Settings.UI/Views/GeneralPage.xaml new file mode 100644 index 0000000000..143b31ef29 --- /dev/null +++ b/src/core/Microsoft.PowerToys.Settings.UI/Views/GeneralPage.xaml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + PowerShell + + + Windows Console + + + +