From 12e606635c42ea20f4b7c2bdda5204237a4b4c96 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期一, 02 三月 2026 16:14:49 +0800
Subject: [PATCH] 优化

---
 HMI.UI/MaskWindow.xaml |   51 +++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 45 insertions(+), 6 deletions(-)

diff --git a/HMI.UI/MaskWindow.xaml b/HMI.UI/MaskWindow.xaml
index 3364c0d..8dd9527 100644
--- a/HMI.UI/MaskWindow.xaml
+++ b/HMI.UI/MaskWindow.xaml
@@ -11,28 +11,67 @@
         pu:WindowXCaption.Height="0"
         ResizeMode="NoResize"
         SizeToContent="WidthAndHeight"
-        Height="20"
         CanClose="False"
-        WindowStyle="None"
+        MinWidth="300"
+        MinHeight="0"
+        Width="Auto"
         x:Name="self"
         WindowStartupLocation="CenterOwner">
     <WindowChrome.WindowChrome>
         <WindowChrome GlassFrameThickness="-1"/>
     </WindowChrome.WindowChrome>
-    <Window.Style>
+    <!--<Window.Style>
         <Style TargetType="Window">
             <Style.Triggers>
                 <DataTrigger Binding="{Binding Status}" Value="Info">
-                    <Setter Property="Background" Value="{StaticResource VerBar}"/>
+                    <Setter Property="Background" Value="{DynamicResource VerBar}"/>
                 </DataTrigger>
             </Style.Triggers>
         </Style>
-    </Window.Style>
+    </Window.Style>-->
     <Grid>
+        <Grid.RowDefinitions>
+            <RowDefinition Height="Auto"/>
+            <RowDefinition />
+        </Grid.RowDefinitions>
+        <Border Padding="10,5,0,5" Background="{DynamicResource PrimaryColor}" CornerRadius="5,5,0,0">
+            <Label Padding="5" FontSize="14" Margin="0" Foreground="#FFF" Content="{DynamicResource App.PleaseWait}"/>
+        </Border>
+
+        <StackPanel Grid.Row="1" Margin="20" Orientation="Horizontal" VerticalAlignment="Center"
+                    HorizontalAlignment="Center">
+            <TextBlock FontSize="45" 
+                       FontFamily="{StaticResource iconfont}" Foreground="{DynamicResource PrimaryColor}" 
+                       RenderTransformOrigin="0.5,0.5"
+                       VerticalAlignment="Center" Text="&#xe891;">
+                <TextBlock.RenderTransform>
+                    <RotateTransform x:Name="MyAnimatedTransform" Angle="0" />
+                </TextBlock.RenderTransform>
+                <TextBlock.Triggers>
+                    <EventTrigger RoutedEvent="TextBlock.Loaded">
+                        <BeginStoryboard>
+                            <Storyboard>
+                                <DoubleAnimation 
+                                Storyboard.TargetName="MyAnimatedTransform"
+                                Storyboard.TargetProperty="(RotateTransform.Angle)"
+                                        From="0" To="360" Duration="0:0:3"
+                                        RepeatBehavior="Forever"/>
+                            </Storyboard>
+                        </BeginStoryboard>
+                    </EventTrigger>
+                </TextBlock.Triggers>
+            </TextBlock>
+
+            <Label x:Name="label" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" 
+                   FontSize="20" FontWeight="Bold" Margin="20,0,0,0" />
+        </StackPanel>
+
+    </Grid>
+    <!--<Grid>
         <Label x:Name="label" 
                Margin="20"
                VerticalContentAlignment="Center"
                HorizontalContentAlignment="Center"
                FontSize="20" FontWeight="Bold" Foreground="White"/>
-    </Grid>
+    </Grid>-->
 </pu:WindowX>

--
Gitblit v1.9.1