From 99df058a665ea04065a23e729ec79a2f23f79881 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期二, 20 五月 2025 16:59:43 +0800
Subject: [PATCH] 优化

---
 HMI.UI/Style/MsgBoxStyle.xaml |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/HMI.UI/Style/MsgBoxStyle.xaml b/HMI.UI/Style/MsgBoxStyle.xaml
index 5e0dafb..1858f41 100644
--- a/HMI.UI/Style/MsgBoxStyle.xaml
+++ b/HMI.UI/Style/MsgBoxStyle.xaml
@@ -11,6 +11,9 @@
             <Style TargetType="pu:WindowX" BasedOn="{StaticResource {x:Static pu:MessageBoxX.WindowXStyleKey}}">
                 <Setter Property="pu:WindowXCaption.Background" Value="{StaticResource WarningColor}" />
                 <Setter Property="pu:WindowXCaption.Foreground" Value="{StaticResource WarningColorContract}" />
+                <Setter Property="Width" Value="350" />
+                <Setter Property="Height" Value="200" />
+                <Setter Property="SizeToContent" Value="Manual" />
             </Style>
         </pu:MessageBoxXSettings.WindowXStyle>
 
@@ -47,6 +50,9 @@
             <Style TargetType="pu:WindowX" BasedOn="{StaticResource {x:Static pu:MessageBoxX.WindowXStyleKey}}">
                 <Setter Property="pu:WindowXCaption.Background" Value="{StaticResource DangerColor}" />
                 <Setter Property="pu:WindowXCaption.Foreground" Value="{StaticResource DangerColorContrast}" />
+                <Setter Property="Width" Value="350" />
+                <Setter Property="Height" Value="200" />
+                <Setter Property="SizeToContent" Value="Manual" />
             </Style>
         </pu:MessageBoxXSettings.WindowXStyle>
 
@@ -83,6 +89,9 @@
             <Style TargetType="pu:WindowX" BasedOn="{StaticResource {x:Static pu:MessageBoxX.WindowXStyleKey}}">
                 <Setter Property="pu:WindowXCaption.Background" Value="{StaticResource PrimaryColor}" />
                 <Setter Property="pu:WindowXCaption.Foreground" Value="{StaticResource PrimaryColorContract}" />
+                <Setter Property="Width" Value="350" />
+                <Setter Property="Height" Value="200" />
+                <Setter Property="SizeToContent" Value="Manual" />
             </Style>
         </pu:MessageBoxXSettings.WindowXStyle>
 

--
Gitblit v1.9.1