projektAutoHandlung/WpfApp4/LoginWindow.xaml
2025-08-31 23:33:31 +02:00

57 lines
2.9 KiB
XML

<Window x:Class="FahrzeugVerwaltung.LoginWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Anmeldung" Height="300" Width="400" WindowStartupLocation="CenterScreen" ResizeMode="NoResize">
<Window.Resources>
<Style TargetType="Button">
<Setter Property="Foreground" Value="White"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="BorderBrush" Value="#FF1976D2"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Background" Value="#FF2196F3"/>
<Setter Property="Padding" Value="10,5"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="5">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#FF1976D2"/>
</Trigger>
</Style.Triggers>
</Style>
</Window.Resources>
<Grid Margin="20">
<Grid.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="#FFFFFF" Offset="0"/>
<GradientStop Color="#E3F2FD" Offset="1"/>
</LinearGradientBrush>
</Grid.Background>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Text="Anmeldung" FontSize="28" FontWeight="SemiBold" Foreground="#FF1976D2" HorizontalAlignment="Center" Margin="0,0,0,20"/>
<StackPanel Grid.Row="1" Orientation="Horizontal" Margin="0,0,0,10">
<Label Content="Benutzername:" Width="110" VerticalAlignment="Center"/>
<TextBox x:Name="txtBenutzer" Width="200"/>
</StackPanel>
<StackPanel Grid.Row="2" Orientation="Horizontal">
<Label Content="Passwort:" Width="110" VerticalAlignment="Center"/>
<PasswordBox x:Name="txtPasswort" Width="200"/>
</StackPanel>
<Button Grid.Row="3" Content="Einloggen" Width="120" Height="35" HorizontalAlignment="Center" Margin="0,20,0,0" Click="BtnLogin_Click"/>
</Grid>
</Window>