From 827050faf0039d2a34af4886cbaf49739bee82e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=BC=9F?= Date: Sat, 9 May 2026 10:17:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AE=9E=E6=97=B6?= =?UTF-8?q?=E5=BC=80=E5=85=B3=E7=BB=91=E5=AE=9A=E5=8F=8A=E5=8A=A8=E7=94=BB?= =?UTF-8?q?=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - MainWindow.xaml: 绑定 IsChecked 到 IsMainViewportRealtimeEnabled - Generic.xaml: 修复 AnimatedSwitch 模板,添加初始状态 Setter 和 ExitActions 动画 --- XplorePlane/Themes/Generic.xaml | 44 ++++++++++++-------------- XplorePlane/Views/Main/MainWindow.xaml | 2 +- 2 files changed, 21 insertions(+), 25 deletions(-) diff --git a/XplorePlane/Themes/Generic.xaml b/XplorePlane/Themes/Generic.xaml index 055be1d..87d50ad 100644 --- a/XplorePlane/Themes/Generic.xaml +++ b/XplorePlane/Themes/Generic.xaml @@ -30,7 +30,7 @@ x:Name="Thumb" Width="18" Height="18" - Margin="3" + Margin="3,3,3,3" HorizontalAlignment="Left" Background="{TemplateBinding ThumbBrush}" CornerRadius="9"> @@ -41,25 +41,24 @@ Opacity="0.2" ShadowDepth="1" /> - - - + + - - + - - + + - - - - + - - + - - + + - + @@ -122,4 +118,4 @@ - + \ No newline at end of file diff --git a/XplorePlane/Views/Main/MainWindow.xaml b/XplorePlane/Views/Main/MainWindow.xaml index 7a110f8..6cc5237 100644 --- a/XplorePlane/Views/Main/MainWindow.xaml +++ b/XplorePlane/Views/Main/MainWindow.xaml @@ -127,7 +127,7 @@ Margin="4,10,4,4" HorizontalAlignment="Center" ToolTip="主界面实时" - IsChecked="True" + IsChecked="{Binding IsMainViewportRealtimeEnabled, Mode=TwoWay}" SwitchWidth="44" SwitchHeight="24" />