|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- <UserControl x:Class="FryPot_DosingSystem.View.AdministratorLoginView"
- 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:vm="clr-namespace:FryPot_DosingSystem.ViewModel"
- xmlns:helper="clr-namespace:FryPot_DosingSystem.Helper"
- xmlns:uc="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
- mc:Ignorable="d"
- Height="450" Width="800"
- Loaded="UserControl_Loaded">
- <UserControl.DataContext>
- <vm:AdministratorLoginViewModel></vm:AdministratorLoginViewModel>
- </UserControl.DataContext>
- <UserControl.Resources>
- <Style x:Key="TxLogin" TargetType="TextBlock">
- <Setter Property="FontSize" Value="20" />
- <Setter Property="Foreground" Value="#ddd" />
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="VerticalAlignment" Value="Center" />
- </Style>
- </UserControl.Resources>
- <Grid>
- <!--<Grid.ColumnDefinitions>
- <ColumnDefinition Width="7*" />
- <ColumnDefinition Width="10*" />
- </Grid.ColumnDefinitions>-->
- <!--<Grid.RowDefinitions>
- <RowDefinition Height="5*" />
- <RowDefinition Height="5*" />
- <RowDefinition Height="5*" />
- <RowDefinition Height="4*" />
- <RowDefinition Height="8*" />
- <RowDefinition Height="20*" />
- </Grid.RowDefinitions>-->
-
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
-
- <!--#region 登录-->
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="0.7*"/>
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
-
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
-
- <TextBlock
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Foreground="#feffff"
- Style="{StaticResource TxLogin}"
- Text="权限:" />
- <ComboBox
- Grid.Column="1"
- Width="230"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- BorderBrush="#FF074B92"
- BorderThickness="1"
- FontFamily="楷体"
- FontSize="20"
- Foreground="#FF2AB2E7"
- IsEditable="False"
- ItemsSource="{Binding permission}"
- Style="{StaticResource ComboBoxStyle}"
- Text="{Binding SelectText}" />
-
- <TextBlock
- Grid.Row="1"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Foreground="#feffff"
- Style="{StaticResource TxLogin}"
- Text="账号:" />
- <TextBox
- x:Name="tbx_admin"
- Grid.Row="1"
- Grid.Column="1"
- Width="230"
- Height="28"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Top"
- Background="Transparent"
- BorderBrush="White"
- BorderThickness="0,0,0,1"
- FontSize="20"
- Foreground="#F8F8FF"
- GotFocus="tbx_admin_GotFocus"
- Text="{Binding Admin, Mode=TwoWay}" />
-
-
- <TextBlock
- Grid.Row="2"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Foreground="#feffff"
- Style="{StaticResource TxLogin}"
- Text="密码:" />
- <PasswordBox
- x:Name="password"
- Grid.Row="2"
- Grid.Column="1"
- Width="230"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Top"
- helper:PasswordBoxHelper.PasswordContent="{Binding Password, Mode=TwoWay}"
- Background="Transparent"
- BorderBrush="White"
- BorderThickness="0,0,0,1"
- CaretBrush="White"
- FontSize="16"
- Foreground="#F8F8FF"
- GotFocus="password_GotFocus" />
- <TextBlock
- Grid.Row="3"
- Grid.ColumnSpan="2"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontFamily="楷体"
- FontSize="16"
- Foreground="#FFE2415C"
- Text="{Binding ErrorMessage}"
- TextWrapping="Wrap" />
- <StackPanel Grid.Row="4" Grid.ColumnSpan="2" Orientation="Horizontal">
- <Button
- Margin="280,0,0,0"
- Width="120"
- Height="40"
- VerticalAlignment="Center"
- Background="Transparent"
- BorderBrush="#ff19b7ec"
- BorderThickness="2"
- Command="{Binding AdminLoginCommand}"
- Content="登 录"
- FontSize="28"
- Foreground="#9934F7F7"
- IsDefault="True" />
- <Button
- Margin="30,0,0,0"
- Width="120"
- Height="40"
- VerticalAlignment="Center"
- Background="Transparent"
- BorderBrush="#ff19b7ec"
- BorderThickness="2"
- Content="{Binding RegistOrChange}"
- FontSize="28"
- Foreground="#9934F7F7"
- IsDefault="True"
- Command="{Binding RegistCommand}"
- CommandParameter="{Binding RegistOrChange}"/>
-
- </StackPanel>
-
- </Grid>
- <!--#endregion-->
-
- <!--#region 密码修改-->
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- </Grid>
- <!--#endregion-->
- <uc:UserKeyBoard
- x:Name="myKeyboard"
- Grid.Row="5"
- Grid.ColumnSpan="2"
- Margin="100,10,100,50"
- Focusable="False" />
- </Grid>
- </UserControl>
|