更新
This commit is contained in:
97
PetWashControl/Views/AdminLoginWindow.xaml
Normal file
97
PetWashControl/Views/AdminLoginWindow.xaml
Normal file
@@ -0,0 +1,97 @@
|
||||
<Window x:Class="PetWashControl.Views.AdminLoginWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
Title="管理员验证"
|
||||
Width="420"
|
||||
Height="340"
|
||||
WindowStartupLocation="CenterOwner"
|
||||
ResizeMode="NoResize"
|
||||
Background="#F5F7FA">
|
||||
<Grid Margin="28">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<TextBlock Text="系统设置"
|
||||
FontSize="30"
|
||||
FontWeight="Bold"
|
||||
Foreground="#1F2937"/>
|
||||
|
||||
<TextBlock Grid.Row="1"
|
||||
Margin="0,8,0,0"
|
||||
Text="请输入管理员账号和密码"
|
||||
FontSize="15"
|
||||
Foreground="#6B7280"/>
|
||||
|
||||
<StackPanel Grid.Row="2"
|
||||
Margin="0,28,0,0">
|
||||
<TextBlock Text="管理员账号"
|
||||
FontSize="14"
|
||||
Foreground="#374151"/>
|
||||
<TextBox x:Name="UsernameTextBox"
|
||||
Margin="0,8,0,0"
|
||||
Height="42"
|
||||
Padding="10"
|
||||
FontSize="16"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Grid.Row="3"
|
||||
Margin="0,18,0,0">
|
||||
<TextBlock Text="管理员密码"
|
||||
FontSize="14"
|
||||
Foreground="#374151"/>
|
||||
<PasswordBox x:Name="PasswordInput"
|
||||
Margin="0,8,0,0"
|
||||
Height="42"
|
||||
Padding="10"
|
||||
FontSize="16"
|
||||
KeyDown="PasswordInput_KeyDown"/>
|
||||
</StackPanel>
|
||||
|
||||
<Border Grid.Row="4"
|
||||
x:Name="ErrorContainer"
|
||||
Margin="0,18,0,0"
|
||||
Background="#FEF2F2"
|
||||
CornerRadius="12"
|
||||
Padding="12"
|
||||
Visibility="Collapsed">
|
||||
<TextBlock x:Name="ErrorTextBlock"
|
||||
Text="账号或密码错误"
|
||||
Foreground="#B91C1C"
|
||||
FontSize="14"/>
|
||||
</Border>
|
||||
|
||||
<Grid Grid.Row="5"
|
||||
Margin="0,24,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="120"/>
|
||||
<ColumnDefinition Width="12"/>
|
||||
<ColumnDefinition Width="120"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Button Grid.Column="1"
|
||||
Content="取消"
|
||||
Height="44"
|
||||
Background="#CBD5E1"
|
||||
Foreground="#0F172A"
|
||||
BorderThickness="0"
|
||||
IsCancel="True"
|
||||
Click="CancelButton_Click"/>
|
||||
|
||||
<Button Grid.Column="3"
|
||||
Content="确定"
|
||||
Height="44"
|
||||
Background="#1976D2"
|
||||
Foreground="White"
|
||||
BorderThickness="0"
|
||||
IsDefault="True"
|
||||
Click="LoginButton_Click"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user