Dispenser/DispenserUI/Views/Windows/UserFormWindow.axaml

111 lines
5.8 KiB
Plaintext
Raw Normal View History

2024-08-16 07:20:09 +00:00
<Window xmlns="https://github.com/avaloniaui"
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"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
Height="1180"
Width="1920"
x:Class="DispenserUI.Views.Windows.UserFormWindow"
SystemDecorations="None"
WindowStartupLocation="CenterScreen"
Background="#AA000000"
TransparencyLevelHint="Transparent"
TransparencyBackgroundFallback="Transparent"
Title="用户表单">
<Border x:Name="UserFormBorder" Padding="20,50,20,30" CornerRadius="24" Background="#F8FAFB" Width="400"
Height="450">
<StackPanel>
<StackPanel>
<TextBlock Text="账户名" />
<Border BorderBrush="#DFE1E7" BorderThickness="1"
CornerRadius="5"
Width="370" Height="48"
Margin="0,10,0,0"
HorizontalAlignment="Center"
BoxShadow="0 1 2 1 #0D0D1205"
Padding="8,12,12,12">
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/UI/user-plus@2x.png" Width="20" Height="20" />
<TextBox x:Name="UserName" Margin="10,0,0,0" FontSize="16" Width="318" Foreground="#818898"
BorderThickness="0" />
</StackPanel>
</Border>
</StackPanel>
<StackPanel Margin="0,10,0,0">
<TextBlock Text="姓名" />
<Border BorderBrush="#DFE1E7" BorderThickness="1"
CornerRadius="5"
Width="370" Height="48"
Margin="0,10,0,0"
HorizontalAlignment="Center"
BoxShadow="0 1 2 1 #0D0D1205"
Padding="8,12,12,12">
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/UI/user-plus@2x.png" Width="20" Height="20" />
<TextBox x:Name="NickName" Margin="10,0,0,0" FontSize="16" Width="318" Foreground="#818898"
BorderThickness="0" />
</StackPanel>
</Border>
</StackPanel>
<StackPanel Margin="0,10,0,0">
<TextBlock Text="密码" />
<Border BorderBrush="#DFE1E7" BorderThickness="1"
CornerRadius="5"
Width="370" Height="48"
Margin="0,10,0,0"
HorizontalAlignment="Center"
BoxShadow="0 1 2 1 #0D0D1205"
Padding="8,12,12,12">
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/UI/user-plus@2x.png" Width="20" Height="20" />
<TextBox x:Name="Password" PasswordChar="*" Margin="10,0,0,0" FontSize="16" Width="318"
Foreground="#818898"
BorderThickness="0" />
</StackPanel>
</Border>
<Button x:Name="ResetPassword" Click="ToResetPassword" IsVisible="False" Content="重置密码" FontSize="12"
Foreground="#322CA0"
Background="Transparent" BorderThickness="0" Padding="0"
Cursor="Hand" />
</StackPanel>
<StackPanel Margin="0,10,0,0">
<TextBlock Text="角色" />
<Border BorderBrush="#DFE1E7" BorderThickness="1"
CornerRadius="5"
Width="370" Height="48"
Margin="0,10,0,0"
HorizontalAlignment="Center"
BoxShadow="0 1 2 1 #0D0D1205"
Padding="8,12,12,12">
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/UI/user-plus@2x.png" Width="20" Height="20" />
<ComboBox x:Name="UserRole" SelectedIndex="0" Margin="10,0,0,0" FontSize="16" Width="318"
Foreground="#818898"
BorderThickness="0">
<ComboBoxItem Tag="">普通用户</ComboBoxItem>
<ComboBoxItem>管理员</ComboBoxItem>
</ComboBox>
</StackPanel>
</Border>
</StackPanel>
<Grid ColumnDefinitions="*,*" HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="0,20,0,0">
<Button Grid.Column="0" Width="150" Height="40" Cursor="Hand"
VerticalAlignment="Center"
HorizontalAlignment="Left"
Click="Close"
CornerRadius="20" Background="#A4ACB9">
<TextBlock Text="取消" Foreground="White" FontSize="16" HorizontalAlignment="Center"
VerticalAlignment="Center" />
</Button>
<Button Grid.Column="1" Width="150" Height="40" Cursor="Hand"
VerticalAlignment="Center"
HorizontalAlignment="Right"
Click="Confirm"
CornerRadius="20" Background="#5F57FF">
<TextBlock Text="确定" Foreground="White" FontSize="16" HorizontalAlignment="Center"
VerticalAlignment="Center" />
</Button>
</Grid>
</StackPanel>
</Border>
</Window>