添加项目文件。
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
<basewindows:BaseWindow
|
||||
x:Class="SamplePre.UIWpf.ConfigManager.chirld.PermissionWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:basewindows="clr-namespace:SamplePre.UIWpf.BaseWindows"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
Title="分配权限"
|
||||
Width="600"
|
||||
Height="650"
|
||||
Background="#F6F6F6"
|
||||
ResizeMode="NoResize"
|
||||
WindowStartupLocation="CenterScreen"
|
||||
mc:Ignorable="d">
|
||||
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="60" />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<Border
|
||||
Margin="5"
|
||||
Background="White"
|
||||
BorderBrush="LightGray"
|
||||
CornerRadius="4">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
|
||||
<TextBlock
|
||||
Margin="5,0,0,0"
|
||||
VerticalAlignment="Center"
|
||||
Text="角色:" />
|
||||
<TextBlock VerticalAlignment="Center" Text="{Binding RoleName}" />
|
||||
<Button
|
||||
x:Name="btnSave"
|
||||
Width="100"
|
||||
Height="30"
|
||||
Margin="20,0"
|
||||
Click="btnSave_Click"
|
||||
Content="保存权限" />
|
||||
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
|
||||
<!-- 用户列表 -->
|
||||
<Border
|
||||
Grid.Row="1"
|
||||
Margin="5,0,5,5"
|
||||
Background="White"
|
||||
BorderBrush="LightGray"
|
||||
CornerRadius="4">
|
||||
|
||||
<TreeView
|
||||
x:Name="tvData"
|
||||
Grid.Row="2"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding FunList}">
|
||||
|
||||
<TreeView.ItemTemplate>
|
||||
<HierarchicalDataTemplate ItemsSource="{Binding Children}">
|
||||
|
||||
<!-- 复选框 + 文字 -->
|
||||
<CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" />
|
||||
|
||||
</HierarchicalDataTemplate>
|
||||
</TreeView.ItemTemplate>
|
||||
</TreeView>
|
||||
|
||||
</Border>
|
||||
|
||||
|
||||
</Grid>
|
||||
|
||||
|
||||
</basewindows:BaseWindow>
|
||||
Reference in New Issue
Block a user