85 lines
3.0 KiB
XML
85 lines
3.0 KiB
XML
<UserControl
|
|
Height="600"
|
|
Width="400"
|
|
x:Class="Project.View.NewLogin"
|
|
xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
|
<UserControl.Styles>
|
|
<Style Selector="TextBlock">
|
|
<Setter Property="Margin" Value="0,5" />
|
|
<Setter Property="FontSize" Value="14" />
|
|
<Setter Property="FontWeight" Value="Medium" />
|
|
</Style>
|
|
<Style Selector="TextBox">
|
|
<Setter Property="Width" Value="250" />
|
|
<Setter Property="Margin" Value="0,5,0,15" />
|
|
<Setter Property="CornerRadius" Value="4" />
|
|
</Style>
|
|
<Style Selector="Button">
|
|
<Setter Property="Width" Value="120" />
|
|
<Setter Property="Height" Value="40" />
|
|
<Setter Property="CornerRadius" Value="20" />
|
|
<Setter Property="Margin" Value="10,8" />
|
|
<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="#FFE0B2" Offset="0" />
|
|
<GradientStop Color="#FFCC80" Offset="1" />
|
|
</LinearGradientBrush>
|
|
</Grid.Background>
|
|
|
|
<Border
|
|
Background="White"
|
|
BoxShadow="0 4 8 0 #40000000"
|
|
CornerRadius="8"
|
|
Margin="20">
|
|
|
|
<StackPanel Margin="20">
|
|
<TextBlock
|
|
FontSize="24"
|
|
FontWeight="Bold"
|
|
HorizontalAlignment="Center"
|
|
Margin="0,0,0,20"
|
|
Text="Neuer Benutzer" />
|
|
|
|
<TextBlock Text="Benutzername:" />
|
|
<TextBox
|
|
TextWrapping="Wrap"
|
|
Watermark="Benutzername eingeben"
|
|
x:Name="NewLoginUsernameBox" />
|
|
|
|
<TextBlock Text="Passwort:" />
|
|
<TextBox
|
|
PasswordChar="•"
|
|
TextWrapping="Wrap"
|
|
Watermark="Passwort eingeben"
|
|
x:Name="NewLoginPasswordBox" />
|
|
|
|
<TextBlock Text="E-Mail:" />
|
|
<TextBox
|
|
TextWrapping="Wrap"
|
|
Watermark="E-Mail-Adresse eingeben"
|
|
x:Name="NewLoginEmailBox" />
|
|
|
|
<StackPanel
|
|
HorizontalAlignment="Center"
|
|
Margin="0,20,0,0"
|
|
Orientation="Horizontal">
|
|
<Button Click="NewLoginSaveOnClick" Content="Speichern" />
|
|
<Button
|
|
Background="#FF5722"
|
|
Click="NewLoginCancelOnClick"
|
|
Content="Abbrechen" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Border>
|
|
</Grid>
|
|
</UserControl> |