From ee9b94104cbb5597c6033d46ec356771d383b21b Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期一, 03 三月 2025 19:30:15 +0800
Subject: [PATCH] 上传依赖;

---
 HMI.ParameterManage/ProductModal.xaml |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/HMI.ParameterManage/ProductModal.xaml b/HMI.ParameterManage/ProductModal.xaml
index fcaf3df..1b9c033 100644
--- a/HMI.ParameterManage/ProductModal.xaml
+++ b/HMI.ParameterManage/ProductModal.xaml
@@ -7,6 +7,7 @@
             xmlns:pw="https://opensource.panuon.com/wpf"
             xmlns:pu="https://opensource.panuon.com/wpf-ui"
             xmlns:uic="clr-namespace:HMI.UI.Converter;assembly=HMI.UI"
+            xmlns:dp="clr-namespace:HMI.UI.DpUtil;assembly=HMI.UI"
             mc:Ignorable="d"
             Title="Form"
             SizeToContent="Height"
@@ -15,7 +16,7 @@
             BorderBrush="#3E3E45"
             BorderThickness="1"
             Foreground="Black"
-            pu:WindowXCaption.Background="{StaticResource MainBorder}"
+            pu:WindowXCaption.Background="{StaticResource PrimaryColor}"
             pu:WindowXModalDialog.ButtonStyle="{StaticResource ModalButton}"
             pu:WindowXCaption.Foreground="#FFF"
             pu:WindowXCaption.Buttons="Close"
@@ -37,9 +38,12 @@
     </Window.Resources>
 
     <Grid Margin="10">
-        <StackPanel>
+        <StackPanel x:Name="formPanel">
             <pu:FormGroup x:Name="FgName" Style="{StaticResource RequiredInputFormGroupStyle}" 
-                              Header="浜у搧鍚嶇О" GroupName="MyFormGroup">
+                              Header="浜у搧鍚嶇О" GroupName="MyFormGroup"
+                          dp:FormGroupHelper.IsRequired="True"
+                          dp:FormGroupHelper.ValidateMethod="ValidateName"
+                          >
                 <TextBox x:Name="TbName" Style="{StaticResource EditorTextBoxStyle}" />
             </pu:FormGroup>
 

--
Gitblit v1.9.1