Adding Open Settings button in SCOOBE (#45775)

See title
This commit is contained in:
Niels Laute
2026-03-03 06:07:34 +01:00
committed by GitHub
parent a6e49c941d
commit 4146876d88
3 changed files with 16 additions and 1 deletions

View File

@@ -1,10 +1,11 @@
<winuiex:WindowEx <winuiex:WindowEx
x:Class="Microsoft.PowerToys.Settings.UI.ScoobeWindow" x:Class="Microsoft.PowerToys.Settings.UI.ScoobeWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="using:Microsoft.PowerToys.Settings.UI.OOBE.Views" xmlns:local="using:Microsoft.PowerToys.Settings.UI.OOBE.Views"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="using:CommunityToolkit.WinUI"
xmlns:winuiex="using:WinUIEx" xmlns:winuiex="using:WinUIEx"
Width="1100" Width="1100"
Height="700" Height="700"
@@ -59,6 +60,12 @@
</StackPanel> </StackPanel>
</DataTemplate> </DataTemplate>
</NavigationView.MenuItemTemplate> </NavigationView.MenuItemTemplate>
<NavigationView.PaneFooter>
<NavigationViewItem
x:Uid="Scoobe_OpenSettings"
Icon="{ui:FontIcon Glyph=&#xE713;}"
Tapped="OpenSettingsItem_Tapped" />
</NavigationView.PaneFooter>
<NavigationView.Content> <NavigationView.Content>
<Grid> <Grid>
<ProgressRing <ProgressRing

View File

@@ -206,5 +206,10 @@ namespace Microsoft.PowerToys.Settings.UI
{ {
navigationView.IsPaneOpen = !navigationView.IsPaneOpen; navigationView.IsPaneOpen = !navigationView.IsPaneOpen;
} }
private void OpenSettingsItem_Tapped(object sender, Microsoft.UI.Xaml.Input.TappedRoutedEventArgs e)
{
App.OpenSettingsWindow();
}
} }
} }

View File

@@ -2195,6 +2195,9 @@ From there, simply click on one of the supported files in the File Explorer and
<data name="ScoobeWindow_TitleTxt.Title" xml:space="preserve"> <data name="ScoobeWindow_TitleTxt.Title" xml:space="preserve">
<value>What's new in PowerToys</value> <value>What's new in PowerToys</value>
</data> </data>
<data name="Scoobe_OpenSettings.Content" xml:space="preserve">
<value>Settings</value>
</data>
<data name="ScoobeReleaseNotes_ViewOnGitHub" xml:space="preserve"> <data name="ScoobeReleaseNotes_ViewOnGitHub" xml:space="preserve">
<value>View on GitHub</value> <value>View on GitHub</value>
</data> </data>