From ffdf42a72ff53e669c76c1ebd94eee7bbab6e85b Mon Sep 17 00:00:00 2001 From: SherkeyXD <57581480+SherkeyXD@users.noreply.github.com> Date: Wed, 21 Aug 2024 19:08:19 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E6=94=B9=E8=BF=87=E6=97=B6?= =?UTF-8?q?=E7=9A=84Binding=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaWpfGui/Res/Styles/MessageBox.xaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MaaWpfGui/Res/Styles/MessageBox.xaml b/src/MaaWpfGui/Res/Styles/MessageBox.xaml index c34e8dbb65..4e2bad7dd1 100644 --- a/src/MaaWpfGui/Res/Styles/MessageBox.xaml +++ b/src/MaaWpfGui/Res/Styles/MessageBox.xaml @@ -1,5 +1,6 @@ @@ -9,7 +10,7 @@ BasedOn="{StaticResource ButtonDefault}" TargetType="Button"> - + @@ -18,7 +19,7 @@ BasedOn="{StaticResource ButtonPrimary}" TargetType="Button"> - + @@ -144,8 +145,7 @@ Data="{TemplateBinding Image}" Fill="{TemplateBinding ImageBrush}" Stretch="Uniform" - Visibility="{TemplateBinding ShowImage, - Converter={StaticResource Boolean2VisibilityConverter}}" /> + Visibility="{c:Binding ShowImage}" />