<pu:WindowX x:Class="HMI.MenuManage.RoleModal"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:local="clr-namespace:HMI.MenuManage"
|
xmlns:pw="https://opensource.panuon.com/wpf"
|
xmlns:pu="https://opensource.panuon.com/wpf-ui"
|
mc:Ignorable="d"
|
Title="Form"
|
SizeToContent="Height"
|
Width="600"
|
WindowStartupLocation="CenterOwner"
|
BorderBrush="#3E3E45"
|
BorderThickness="1"
|
Foreground="Black"
|
pu:WindowXCaption.Background="{StaticResource MainBorder}"
|
pu:WindowXCaption.Foreground="#FFF"
|
pu:WindowXCaption.Buttons="Close"
|
pu:WindowXModalDialog.Buttons="OKCancel"
|
pu:WindowXModalDialog.CancelButtonContent="取消"
|
pu:WindowXModalDialog.OKButtonContent="保存"
|
pu:WindowXModalDialog.ButtonStyle="{StaticResource ModalButton}"
|
pu:WindowXModalDialog.ButtonPanelMargin="0,30,10,10">
|
<Window.Resources>
|
<ResourceDictionary>
|
<ResourceDictionary.MergedDictionaries>
|
<pu:StyleDictionary Includes="TextBox,ComboBox,Button" />
|
<ResourceDictionary Source="/HMI.UI;component/Resources/Font/Font.xaml"/>
|
<ResourceDictionary Source="/HMI.UI;component/Style/Colors.xaml"/>
|
<ResourceDictionary Source="/HMI.UI;component/Style/FormStyle.xaml"/>
|
<ResourceDictionary Source="/HMI.UI;component/Style/PanuonResource.xaml"/>
|
</ResourceDictionary.MergedDictionaries>
|
</ResourceDictionary>
|
</Window.Resources>
|
|
<Grid Margin="10">
|
<StackPanel>
|
<pu:FormGroup x:Name="FgCode" Style="{StaticResource RequiredInputFormGroupStyle}"
|
Header="角色编号" GroupName="MyFormGroup">
|
<TextBox x:Name="TbCode" Style="{StaticResource EditorTextBoxStyle}" />
|
</pu:FormGroup>
|
|
<pu:FormGroup x:Name="FgName" Style="{StaticResource RequiredInputFormGroupStyle}"
|
Header="角色名称" GroupName="MyFormGroup">
|
<TextBox x:Name="TbName" Style="{StaticResource EditorTextBoxStyle}" />
|
</pu:FormGroup>
|
|
<pu:FormGroup x:Name="FgMenu" Orientation="Vertical" Style="{StaticResource RequiredInputFormGroupStyle}"
|
Header="权限" GroupName="MyFormGroup">
|
<TreeView x:Name="menuTree" Grid.Column="1" Style="{StaticResource DefaultTreeView}"
|
ItemsSource="{Binding TreeDataSource}">
|
<TreeView.ItemTemplate>
|
<HierarchicalDataTemplate ItemsSource="{Binding Children}">
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
<CheckBox VerticalAlignment="Center" IsChecked="{Binding Selected}"
|
Command="{Binding CheckCommand}"
|
CommandParameter="{Binding Path=IsChecked,RelativeSource={RelativeSource Mode=Self}}"/>
|
<Image Width="{StaticResource ContentFontSize}"
|
Height="{StaticResource ContentFontSize}" Margin="5" Source="{Binding MenuIcon,Converter={StaticResource path2Image},Mode=OneWay}"/>
|
<TextBlock VerticalAlignment="Center" Text="{Binding MenuName}"/>
|
</StackPanel>
|
</HierarchicalDataTemplate>
|
</TreeView.ItemTemplate>
|
</TreeView>
|
</pu:FormGroup>
|
</StackPanel>
|
</Grid>
|
</pu:WindowX>
|