From 4cac1b533e133fdc8b3def90a0f998820f51907a Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期三, 26 三月 2025 17:57:59 +0800
Subject: [PATCH] 优化UI,新增日志自动删除;

---
 HMI.UI/Style/FormStyle.xaml |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/HMI.UI/Style/FormStyle.xaml b/HMI.UI/Style/FormStyle.xaml
index 3bda03a..1043030 100644
--- a/HMI.UI/Style/FormStyle.xaml
+++ b/HMI.UI/Style/FormStyle.xaml
@@ -67,7 +67,7 @@
         <Setter Property="pu:TextBoxHelper.FocusedWatermarkForeground" Value="#AAAAAA" />
         <Setter Property="Height" Value="35" />
         <Setter Property="Padding" Value="5,0" />
-        <Setter Property="Background" Value="Transparent" />
+        <Setter Property="Background" Value="White" />
         <Setter Property="Foreground" Value="Black" />
         <Setter Property="VerticalContentAlignment" Value="Center"/>
         <Style.Triggers>
@@ -109,14 +109,24 @@
 
             </Style>
         </Style.Resources>
+        <Setter Property="HeaderTemplate">
+            <Setter.Value>
+                <DataTemplate>
+                    <Border Margin="5,0,5,0">
+                        <ContentControl Content="{Binding}" />
+                    </Border>
+                </DataTemplate>
+            </Setter.Value>
+        </Setter>
+
         <Setter Property="HeaderWidth" Value="Auto" />
         <Setter Property="Orientation" Value="Horizontal" />
         <Setter Property="Margin" Value="0,10,0,0" />
     </Style>
 
     <DataTemplate x:Key="RequiredFormHeader">
-        <StackPanel Orientation="Horizontal">
-            <TextBlock Text="*" Foreground="Red" />
+        <StackPanel Orientation="Horizontal" Margin="0,0,5,0">
+            <TextBlock Text="*" Width="5" Foreground="Red" />
             <ContentControl Content="{Binding}" />
         </StackPanel>
     </DataTemplate>

--
Gitblit v1.9.1