|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- <UserControl x:Class="BPASmart.UserManagement.View.AddNewUser"
- 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:BPASmart.UserManagement.View"
- xmlns:common="clr-namespace:BPASmart.UserManagement.Helper"
- xmlns:vm="clr-namespace:BPASmart.UserManagement.ViewModel"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800">
- <UserControl.DataContext>
- <vm:AddNewUserViewModel/>
- </UserControl.DataContext>
- <Border Margin="100,40">
- <Border.Background>
- <ImageBrush ImageSource="../Image/user背景.png" Stretch="Fill"/>
- </Border.Background>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="14*"/>
- <RowDefinition Height="36*"/>
- <RowDefinition Height="192*"/>
- <RowDefinition Height="51*"/>
- <RowDefinition Height="77*"/>
- </Grid.RowDefinitions>
- <TextBlock Grid.Row="1" Text="注册新用户" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="#009DFF"
- FontSize="24" Height="30" Width="120"/>
- <Grid Grid.Row="2" Margin="10" VerticalAlignment="Center" Width="250">
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <TextBox
- Name="Username"
- Margin="5,5"
- BorderBrush="#009DFF"
- BorderThickness="3"
- FontSize="18"
- Foreground="#009DFF"
- KeyDown="TextBox_KeyDown"
- Height="40"
- Style="{DynamicResource UserTextBoxStyle}"
-
- TabIndex="1"
- Text="{Binding UserName}" />
-
- <PasswordBox
- Name="pb"
- Grid.Row="1"
- Margin="5"
- common:PasswordHelper.Attach="True"
- common:PasswordHelper.Password="{Binding UserPassword, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- BorderBrush="#009DFF"
- BorderThickness="3"
- FontSize="20"
- Height="40"
- Foreground="#009DFF"
- KeyDown="pb_KeyDown"
- PasswordChanged="PasswordBox_PasswordChanged"
- Style="{DynamicResource PasswordBoxStyle}"
- TabIndex="2" />
- <PasswordBox
- Name="pb2"
- Grid.Row="2"
- Margin="5"
- common:PasswordHelper.Attach="True"
- common:PasswordHelper.Password="{Binding ConfirmPassword, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- BorderBrush="#009DFF"
- BorderThickness="3"
- FontSize="20"
- Height="40"
- Foreground="#009DFF"
- KeyDown="pb2_KeyDown"
- PasswordChanged="PasswordBox2_PasswordChanged"
- Style="{DynamicResource PasswordBoxStyle}"
- TabIndex="2" />
-
-
- <TextBlock
- Name="markText"
- Grid.Row="1"
- Margin="58,5"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- FontSize="16"
- Foreground="#88009dff"
- IsHitTestVisible="False"
- Text="请输入账号密码"
- Visibility="Visible" />
-
- <TextBlock
- Name="mark2Text"
- Grid.Row="2"
- Margin="58,5"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- FontSize="16"
- Foreground="#88009dff"
- IsHitTestVisible="False"
- Text="请再次确认密码"
- Visibility="Visible" />
- </Grid>
- <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="top">
- <Button
- x:Name="registerButton"
- Grid.Column="1"
- Command="{Binding ResgisterUserCommand}"
- Content="注 册"
- Style="{StaticResource CommonButton}"
- FontSize="20"
- TabIndex="3"
- Width="120"
- Background="#009DFF"
- Foreground="White"
- VerticalAlignment="Top"
- Margin="20,0"/>
- <Button
- Command="{Binding ExitCommand}"
- Content="退 出" FontSize="20"
- Width="120"
- Style="{StaticResource CommonButton}"
- Background="#009DFF"
- Foreground="White"
- VerticalAlignment="Top"
- Margin="20,0"
- />
-
- </StackPanel>
-
- <StackPanel Grid.Row="4" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Top" Visibility="{Binding ErrorVisibility}">
- <Image Source="../image/科技警告.png" Width="25" Height="25" Stretch="Fill"/>
- <TextBlock Margin="10,0" Text="{Binding ErrorMessage}" Foreground="#FF3F36" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </StackPanel>
- </Grid>
- </Border>
- </UserControl>
|