From 4b0889e6f09fb1fa6162dc4bf86e53db2983baee Mon Sep 17 00:00:00 2001 From: Claris <2318678921@qq.com> Date: Tue, 7 Nov 2023 12:57:04 +0800 Subject: [PATCH] Fix CoreWindow creation --- CoreAppUWP/Pages/SettingsPages/SettingsPage.xaml | 2 +- CoreAppUWP/Pages/SettingsPages/SettingsPage.xaml.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CoreAppUWP/Pages/SettingsPages/SettingsPage.xaml b/CoreAppUWP/Pages/SettingsPages/SettingsPage.xaml index 2eee43e..9f37960 100644 --- a/CoreAppUWP/Pages/SettingsPages/SettingsPage.xaml +++ b/CoreAppUWP/Pages/SettingsPages/SettingsPage.xaml @@ -119,7 +119,7 @@ Description="Create a new CoreWindow." Header="CoreWindow" IsClickEnabled="True" - IsEnabled="{x:Bind IsCoreWindow}" + Style="{StaticResource ClickableSettingExpanderItemStyle}" Tag="NewWindow" /> { if (SettingsHelper.Get(SettingsHelper.IsExtendsTitleBar)) @@ -99,7 +99,7 @@ private async void Button_Click(object sender, RoutedEventArgs e) Frame _frame = new(); window.Content = _frame; ThemeHelper.Initialize(window); - _ = _frame.Navigate(typeof(MainPage), null, new DrillInNavigationTransitionInfo()); + _ = _frame.Navigate(typeof(MainPage)); BackdropHelper.SetBackdrop(window, SettingsHelper.Get(SettingsHelper.SelectedBackdrop)); }); break;