schangxiang@126.com
2025-11-04 f5ed29dc26c7cd952d56ec5721a2efc43cd25992
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<UserControl x:Class="XHandler.View.UserManagerment"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:XHandler.View"
             xmlns:ctrls="clr-namespace:XHandler.Controls"
             xmlns:str="clr-namespace:XHandler.Properties"
             mc:Ignorable="d" 
             d:DesignHeight="450" d:DesignWidth="800" Loaded="UserControl_Loaded">
    <Grid x:Name="rootGrid">
        <Grid Background="White">
            <Grid.RowDefinitions>
                <RowDefinition Height="50"/>
                <RowDefinition Height="50"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
 
            <Grid Grid.Row="0" >
                <!--用户管理-->
                <TextBlock Text="{x:Static str:UserManagementResource.strUserManagement}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="20 0" FontSize="20"
                           Foreground="Black" FontWeight="Bold"/>
                <Button Content="×" HorizontalAlignment="Right" VerticalAlignment="Center" VerticalContentAlignment="Center" Margin="10 0" FontSize="28" Width="40" Height="40"
                        FontWeight="Bold" Foreground="Black" Style="{DynamicResource BlueButtonStyle}" Background="White" Click="btnClose_Click"
                        BorderThickness="0" Visibility="Collapsed"/>
                <Rectangle Height="1" Fill="Gray" VerticalAlignment="Bottom" Margin="15 0"/>
            </Grid>
 
            <Grid Grid.Row="1" >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="auto"/>
                    <ColumnDefinition Width="auto"/>
                    <ColumnDefinition Width="auto"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <RadioButton x:Name="rbUserCenter" Grid.Column="1" Width="120" Height="40" Style="{DynamicResource ULRadioButtonSytle}" Content="{x:Static str:UserManagementResource.strUserCenter}"
                                     FontSize="20" FontWeight="Black" Background="White" Margin="0 0 20 0" HorizontalAlignment="Right"
                                     VerticalContentAlignment="Center" Checked="rbUserCenter_Checked"/>
                <RadioButton x:Name="rbRoleManage" Grid.Column="2" Width="120" Height="40" Style="{DynamicResource ULRadioButtonSytle}" Content="{x:Static str:UserManagementResource.strRoleManage}"
                                     FontSize="20" FontWeight="Black" Background="White" Margin="20 0 0 0" HorizontalAlignment="Left"
                                     VerticalContentAlignment="Center" Checked="rbRoleManage_Checked"/>
                <RadioButton x:Name="rbMenuManage" Grid.Column="3" Width="120" Height="40" Style="{DynamicResource ULRadioButtonSytle}" Content="{x:Static str:UserManagementResource.strMenuManage}"
                                     FontSize="20" FontWeight="Black" Background="White" Margin="20 0 0 0" HorizontalAlignment="Center" Visibility="Collapsed"
                                     VerticalContentAlignment="Center" Checked="rbMenuManage_Checked"/>
 
                <Button Content="{x:Static str:UserManagementResource.strNew}" x:Name="btnNew" Grid.Column="4" HorizontalAlignment="Right" Margin="20,0"
                        Foreground="White" Style="{DynamicResource BlueButtonStyle}" Background="{DynamicResource blueBrush}" BorderThickness="0"
                        Height="40" Width="100" Click="btnNew_Click" FontSize="16"/>
            </Grid>
 
            <Grid Grid.Row="2" x:Name="gridContent">
            </Grid>
 
        </Grid>
    </Grid>
</UserControl>