From 43b331ec21647bad9777d34918367e2f716b20d5 Mon Sep 17 00:00:00 2001 From: Claris <2318678921@qq.com> Date: Tue, 7 Nov 2023 13:36:47 +0800 Subject: [PATCH] Automatically put desktop window at top --- CoreAppUWP/Pages/SettingsPages/SettingsPage.xaml.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/CoreAppUWP/Pages/SettingsPages/SettingsPage.xaml.cs b/CoreAppUWP/Pages/SettingsPages/SettingsPage.xaml.cs index adf7af5..e69014c 100644 --- a/CoreAppUWP/Pages/SettingsPages/SettingsPage.xaml.cs +++ b/CoreAppUWP/Pages/SettingsPages/SettingsPage.xaml.cs @@ -119,6 +119,7 @@ private async void Button_Click(object sender, RoutedEventArgs e) appWindow.Title = Package.Current.DisplayName; appWindow.SetIcon("favicon.ico"); appWindow.Show(); + appWindow.MoveInZOrderAtTop(); break; case "SearchFlyout" when SettingsPaneRegister.IsSearchPaneSupported: SearchPane.GetForCurrentView().Show();