Project_Keywi/Project.View/Login Page/LoginPage.axaml

75 lines
2.5 KiB
XML

<UserControl
x:Class="Project.View.LoginPage"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<UserControl.Styles>
<Style Selector="Button">
<Setter Property="Width" Value="200" />
<Setter Property="Height" Value="40" />
<Setter Property="CornerRadius" Value="20" />
<Setter Property="Margin" Value="0,8" />
<Setter Property="HorizontalAlignment" Value="Center" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Background" Value="#4CAF50" />
<Setter Property="Foreground" Value="White" />
</Style>
</UserControl.Styles>
<Grid>
<Grid.Background>
<LinearGradientBrush EndPoint="1,1" StartPoint="0,0">
<GradientStop Color="White" Offset="0" />
<GradientStop Color="LightGray" Offset="1" />
</LinearGradientBrush>
</Grid.Background>
<Border
Background="White"
BoxShadow="0 4 8 0 #40000000"
CornerRadius="8"
Padding="20"
Width="400">
<StackPanel>
<Image
Height="150"
Margin="0,0,0,20"
Source="avares://Project.View/Images/keywi_logo_2.png"
Width="150" />
<TextBlock
FontSize="24"
FontWeight="Bold"
HorizontalAlignment="Center"
Margin="0,0,0,20"
Text="Login-Page" />
<TextBlock Text="Username:" />
<TextBox
TextWrapping="Wrap"
Watermark="Your Username"
x:Name="LoginNameBox" />
<TextBlock Text="Password:" />
<TextBox
PasswordChar="•"
TextWrapping="Wrap"
Watermark="Enter password"
x:Name="LoginPasswordBox" />
<Button Click="LoginButtonOnClick" Name="ConfirmButton">
Login
</Button>
<Button
Background="#FF9800"
Click="NewUserButtonOnClick"
Name="NewUserButton">
New User
</Button>
</StackPanel>
</Border>
</Grid>
</UserControl>