Files
wcs/货架标准上位机/Views/Windows/RoleEditView.xaml
2024-10-31 13:57:24 +08:00

41 lines
2.2 KiB
XML

<Window xmlns:hc="https://handyorg.github.io/handycontrol" x:Class="智能仓储WCS管理系统.RoleEditView"
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:智能仓储WCS管理系统"
mc:Ignorable="d"
Title="权限信息" Height="540" Width="450" ResizeMode="CanResize" Icon="/Resources/Logo.ico" WindowStartupLocation="CenterScreen">
<Grid Background="White" Margin="10,5">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
<TextBox Grid.Row="0" x:Name="textBox" Style="{StaticResource TextBoxExtend}" hc:InfoElement.Placeholder="请输入角色名" hc:InfoElement.Title="角色名" hc:InfoElement.Necessary="True"></TextBox>
<TextBlock Grid.Row="1" Text="认证项" Margin="8,5"/>
<TreeView Grid.Row="2" x:Name="treeView" ItemsSource="{Binding DataList}">
<!--默认展开所有节点-->
<TreeView.ItemContainerStyle>
<Style TargetType="TreeViewItem">
<Setter Property="IsExpanded" Value="True"/>
</Style>
</TreeView.ItemContainerStyle>
<!--绑定数据源-->
<TreeView.ItemTemplate>
<HierarchicalDataTemplate ItemsSource="{Binding Children}">
<CheckBox Margin="1" IsChecked="{Binding IsSelect}" Content="{Binding Name}"/>
</HierarchicalDataTemplate>
</TreeView.ItemTemplate>
</TreeView>
<StackPanel Grid.Row="3" Margin="10" Orientation="Horizontal" HorizontalAlignment="Right">
<Button x:Name="qr" Margin="0,0,10,0" Padding="25,0" Style="{StaticResource ButtonPrimary}">确认</Button>
<Button Margin="0,0,10,0" Padding="25,0" Click="qx">取消</Button>
</StackPanel>
</Grid>
</Window>