From f08871fe7d148d667f2f11f80f64de71a0d9504c Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期一, 15 六月 2026 18:19:37 +0800
Subject: [PATCH] 优化标准老化界面

---
 HMI.MenuManage/Modal/RoleModal.xaml |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/HMI.MenuManage/Modal/RoleModal.xaml b/HMI.MenuManage/Modal/RoleModal.xaml
index 4238048..da5371d 100644
--- a/HMI.MenuManage/Modal/RoleModal.xaml
+++ b/HMI.MenuManage/Modal/RoleModal.xaml
@@ -9,8 +9,8 @@
             xmlns:dp="clr-namespace:HMI.UI.DpUtil;assembly=HMI.UI"
             mc:Ignorable="d"
             Title="Form"
-            SizeToContent="Height"
             Width="600"
+            Height="800"
             WindowStartupLocation="CenterOwner"
             Style="{StaticResource ModalWindow}">
     <Grid Margin="10">
@@ -28,10 +28,12 @@
             dp:FormGroupHelper.IsRequired="True" GroupName="MyFormGroup">
                 <TextBox x:Name="TbName" Style="{StaticResource EditorTextBoxStyle}" />
             </pu:FormGroup>
-            
+
             <pu:FormGroup x:Name="FgMenu" Orientation="Vertical" Style="{StaticResource RequiredInputFormGroupStyle}" 
                               Header="{DynamicResource HMI.Role.Permission}" GroupName="MyFormGroup">
-                <TreeView x:Name="menuTree" Grid.Column="1" Style="{StaticResource DefaultTreeView}" 
+                <TreeView x:Name="menuTree" Grid.Column="1" Style="{StaticResource DefaultTreeView}"
+                          
+                          MaxHeight="550"
                           ItemsSource="{Binding TreeDataSource}">
                     <TreeView.ItemTemplate>
                         <HierarchicalDataTemplate ItemsSource="{Binding Children}">

--
Gitblit v1.9.1