From 9d1660270272180cd71147d6ddd53d1382643d2e Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 02 十一月 2026 18:00:14 +0800
Subject: [PATCH] merge: 并入远程 Initial commit 作为历史根节点

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

diff --git a/HMI.UI/Style/FormStyle.xaml b/HMI.UI/Style/FormStyle.xaml
new file mode 100644
index 0000000..d6407ac
--- /dev/null
+++ b/HMI.UI/Style/FormStyle.xaml
@@ -0,0 +1,188 @@
+锘�<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+            xmlns:pw="https://opensource.panuon.com/wpf"
+            xmlns:pu="https://opensource.panuon.com/wpf-ui">
+
+    <ResourceDictionary.MergedDictionaries>
+        <pu:StyleDictionary Includes="TextBox,ComboBox,Button,PasswordBox" />
+    </ResourceDictionary.MergedDictionaries>
+
+    <Style x:Key="ModalButton" TargetType="Button" BasedOn="{StaticResource {x:Static pu:WindowXModalDialog.ButtonStyleKey}}">
+        <Setter Property="pu:ButtonHelper.PendingSpinStyle">
+            <Setter.Value>
+                <Style TargetType="pu:Spin" BasedOn="{StaticResource {x:Static pu:ButtonHelper.PendingSpinStyleKey}}">
+                    <Setter Property="SpinStyle" Value="Ring2" />
+                </Style>
+            </Setter.Value>
+        </Setter>
+        <Style.Triggers>
+            <Trigger Property="pu:ButtonHelper.IsPending" Value="True">
+                <Setter Property="pu:ButtonHelper.ClickEffect" Value="Shake" />
+                <Setter Property="ContentTemplate">
+                    <Setter.Value>
+                        <DataTemplate>
+                            <TextBlock Text="璇风◢鍚�..." />
+                        </DataTemplate>
+                    </Setter.Value>
+                </Setter>
+            </Trigger>
+            <Trigger Property="Tag" Value="OK">
+                <Setter Property="Background" Value="{DynamicResource VerBar}" />
+                <Setter Property="Foreground" Value="{DynamicResource PrimaryColorContract}" />
+                <Setter Property="Padding" Value="20,0" />
+                <Setter Property="Height" Value="35" />
+            </Trigger>
+            <Trigger Property="Tag" Value="Cancel">
+                <Setter Property="Background" Value="{x:Null}" />
+                <Setter Property="Foreground" Value="Gray" />
+                <Setter Property="Cursor" Value="Hand" />
+                <Setter Property="Padding" Value="10,0" />
+                <Setter Property="ContentTemplate">
+                    <Setter.Value>
+                        <DataTemplate>
+                            <TextBlock Text="{Binding}" TextDecorations="Underline" />
+                        </DataTemplate>
+                    </Setter.Value>
+                </Setter>
+            </Trigger>
+        </Style.Triggers>
+    </Style>
+
+    <Style x:Key="SearchButton" TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
+        <Setter Property="pu:ButtonHelper.CornerRadius" Value="0" />
+        <Setter Property="Width" Value="30" />
+        <Setter Property="Background" Value="{DynamicResource VerBar}" />
+        <Setter Property="Foreground" Value="{DynamicResource PrimaryColorContract}" />
+        <Setter Property="FontFamily" Value="{StaticResource iconfont}" />
+        <Setter Property="Height" Value="35" />
+        <Setter Property="Content" Value="&#xe752;"/>
+        <Setter Property="Cursor" Value="Hand"/>
+    </Style>
+
+    <Style x:Key="EditorTextBoxStyle" TargetType="TextBox" BasedOn="{StaticResource {x:Type TextBox}}">
+        <Setter Property="pu:TextBoxHelper.FocusedBorderBrush" Value="#6CBCEA" />
+        <Setter Property="pu:TextBoxHelper.FocusedShadowColor" Value="#6CBCEA" />
+        <Setter Property="pu:TextBoxHelper.CornerRadius" Value="0" />
+        <Setter Property="pu:TextBoxHelper.WatermarkForeground" Value="#4A4A4A" />
+        <Setter Property="pu:TextBoxHelper.FocusedWatermarkForeground" Value="#AAAAAA" />
+        <Setter Property="Height" Value="35" />
+        <Setter Property="Padding" Value="5,0" />
+        <Setter Property="BorderThickness" Value="1" />
+        <Setter Property="BorderBrush" Value="Gray" />
+        <Setter Property="Background" Value="White" />
+        <Setter Property="Foreground" Value="Black" />
+        <Setter Property="VerticalContentAlignment" Value="Center"/>
+        <Style.Triggers>
+            <Trigger Property="IsReadOnly" Value="True">
+                <Setter Property="Background" Value="#e8e8e8"/>
+            </Trigger>
+        </Style.Triggers>
+    </Style>
+
+    <Style x:Key="FormNumberInput" TargetType="pu:NumberInput" BasedOn="{StaticResource {x:Type pu:NumberInput}}">
+        <Setter Property="pu:TextBoxHelper.FocusedBorderBrush" Value="#6CBCEA" />
+        <Setter Property="pu:TextBoxHelper.FocusedShadowColor" Value="#6CBCEA" />
+        <Setter Property="pu:TextBoxHelper.CornerRadius" Value="0" />
+        <Setter Property="pu:TextBoxHelper.WatermarkForeground" Value="#4A4A4A" />
+        <Setter Property="pu:TextBoxHelper.FocusedWatermarkForeground" Value="#AAAAAA" />
+        <Setter Property="Height" Value="35" />
+        <Setter Property="Padding" Value="5,0" />
+        <Setter Property="Foreground" Value="Black" />
+        <Setter Property="VerticalContentAlignment" Value="Center"/>
+        <Style.Triggers>
+            <Trigger Property="IsReadOnly" Value="True">
+                <Setter Property="Background" Value="LightGray"/>
+            </Trigger>
+        </Style.Triggers>
+    </Style>
+
+    <Style x:Key="MultilineEditorTextBoxStyle" TargetType="TextBox" BasedOn="{StaticResource EditorTextBoxStyle}">
+        <Setter Property="Height" Value="100" />
+        <Setter Property="Padding" Value="5,10" />
+        <Setter Property="AcceptsReturn" Value="True" />
+        <Setter Property="TextWrapping" Value="Wrap" />
+        <Setter Property="VerticalContentAlignment" Value="Top" />
+    </Style>
+
+    <Style x:Key="InputFormGroupStyle" TargetType="pu:FormGroup">
+        <Style.Resources>
+            <Style TargetType="TextBox" BasedOn="{StaticResource EditorTextBoxStyle}">
+            </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" Margin="0,0,5,0">
+            <TextBlock Text="*" Width="5" Foreground="Red" />
+            <ContentControl Content="{Binding}" />
+        </StackPanel>
+    </DataTemplate>
+
+    <Style x:Key="RequiredInputFormGroupStyle" TargetType="pu:FormGroup" BasedOn="{StaticResource InputFormGroupStyle}">
+        <Setter Property="HeaderTemplate" Value="{StaticResource RequiredFormHeader}"/>
+    </Style>
+
+    <Style x:Key="FormComboxStyle" TargetType="ComboBox" BasedOn="{StaticResource {x:Type ComboBox}}">
+        <Setter Property="pu:ComboBoxHelper.CornerRadius" Value="0"/>
+        <Setter Property="pu:ComboBoxHelper.ItemsHoverBackground" Value="{DynamicResource SecondPrimaryColor}"/>
+        <Setter Property="pu:ComboBoxHelper.ItemsHoverForeground" Value="#FFF"/>
+        <Setter Property="pu:ComboBoxHelper.ItemsSelectedForeground" Value="Black"/>
+        <Setter Property="pu:ComboBoxHelper.HoverBorderBrush" Value="#007ACC" />
+        <Setter Property="pu:ComboBoxHelper.FocusedBorderBrush" Value="#007ACC" />
+        <Setter Property="pu:ComboBoxHelper.ClearButtonVisibility" Value="VisibleOnNonnull" />
+        <Setter Property="Height" Value="35" />
+        <Setter Property="Margin" Value="0" />
+        <Setter Property="Background" Value="#FFF" />
+        <Setter Property="VerticalContentAlignment" Value="Center"/>
+        <Setter Property="VerticalAlignment" Value="Center"/>
+        <Setter Property="HorizontalContentAlignment" Value="Left"/>
+        <Setter Property="HorizontalAlignment" Value="Stretch"/>
+        <Setter Property="Foreground" Value="Black" />
+        <Setter Property="SelectedValuePath" Value="Content"/>
+        <Setter Property="BorderThickness" Value="1" />
+        <Setter Property="BorderBrush" Value="Gray" />
+        <Style.Triggers>
+            <Trigger Property="IsEnabled" Value="False">
+                <Setter Property="Background" Value="#e8e8e8"/>
+                <Setter Property="Opacity" Value="1"/>
+            </Trigger>
+        </Style.Triggers>
+    </Style>
+
+    <Style x:Key="TimePicker" TargetType="pu:DateTimePicker">
+        <Setter Property="Height" Value="35"/>
+        <Setter Property="ClearButtonVisibility" Value="Visible"/>
+        <Setter Property="ItemsCheckedBackground" Value="{DynamicResource PrimaryColor}"/>
+        <Setter Property="ItemsCheckedForeground" Value="{DynamicResource SecondPrimaryColorContract}"/>
+        <Setter Property="ItemsHoverBackground" Value="{DynamicResource SecondPrimaryColor}"/>
+        <Setter Property="ItemsHoverForeground" Value="{DynamicResource SecondPrimaryColorContract}"/>
+        <Setter Property="TextStringFormat" Value="yyyy-MM-dd HH:mm:ss"/>
+        <Setter Property="MinWidth" Value="180"/>
+        <Setter Property="Mode" Value="DateTime"/>
+        <Setter Property="SelectedDateTime" Value="{x:Null}"/>
+    </Style>
+
+    <Style x:Key="SignInPasswordBoxStyle" TargetType="PasswordBox" BasedOn="{StaticResource {x:Type PasswordBox}}">
+        <Setter Property="pu:PasswordBoxHelper.FocusedBorderBrush" Value="#6CBCEA" />
+        <Setter Property="pu:PasswordBoxHelper.FocusedShadowColor" Value="#6CBCEA" />
+        <Setter Property="pu:PasswordBoxHelper.CornerRadius" Value="2" />
+        <Setter Property="pu:PasswordBoxHelper.WatermarkForeground" Value="#4A4A4A" />
+        <Setter Property="pu:PasswordBoxHelper.FocusedWatermarkForeground" Value="#AAAAAA" />
+        <Setter Property="pu:PasswordBoxHelper.PlainButtonVisibility" Value="VisibleOnHover" />
+        <Setter Property="VerticalContentAlignment" Value="Center" />
+        <Setter Property="Height" Value="35" />
+    </Style>
+</ResourceDictionary>
\ No newline at end of file

--
Gitblit v1.9.1