From d82015d40f555f263cc787f5f874d13840429588 Mon Sep 17 00:00:00 2001 From: Jac0b-Shi Date: Tue, 24 Mar 2026 17:40:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=BD=AF=E4=BB=B6=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E6=97=B6Mica=E8=83=8C=E6=99=AF=E6=9C=AA=E6=AD=A3?= =?UTF-8?q?=E7=A1=AE=E5=BA=94=E7=94=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MainWindow.xaml | 4 +++- src/MainWindow.xaml.cs | 4 ---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/MainWindow.xaml b/src/MainWindow.xaml index 6f4386b6..ae37cd7b 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 23a80e25..d00e0050 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)