diff --git a/src/MainWindow.xaml b/src/MainWindow.xaml index 6f4386b..ae37cd7 100644 --- a/src/MainWindow.xaml +++ b/src/MainWindow.xaml @@ -9,7 +9,9 @@ mc:Ignorable="d" Title="ExHyperV" Height="800" Width="1100" xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml" - WindowStartupLocation="CenterScreen"> + WindowStartupLocation="CenterScreen" + WindowBackdropType="Mica" + ExtendsContentIntoTitleBar="True"> diff --git a/src/MainWindow.xaml.cs b/src/MainWindow.xaml.cs index 23a80e2..d00e005 100644 --- a/src/MainWindow.xaml.cs +++ b/src/MainWindow.xaml.cs @@ -18,10 +18,6 @@ public MainWindow() } else { ApplicationThemeManager.Apply(ApplicationTheme.Light); } - Loaded += (sender, args) => //监听系统切换主题事件 - { - SystemThemeWatcher.Watch(this, WindowBackdropType.Mica, true); - }; } private void PagePreload(object sender, RoutedEventArgs e)