Tastaturnavigation auf der Login-Seite hinzugefügt
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
|
||||
Title="LogInPage">
|
||||
Title="LogInPage"
|
||||
KeyboardNavigation.DirectionalNavigation="Cycle"
|
||||
Loaded="Page_Loaded">
|
||||
|
||||
<Grid Margin="40,20">
|
||||
<Grid.RowDefinitions>
|
||||
@@ -32,14 +34,14 @@
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Label Content="Email (Benutzername):" Grid.Row="0" FontWeight="SemiBold"/>
|
||||
<TextBox x:Name="BenutzernameTextBox" Grid.Row="1" Height="45" FontSize="14"/>
|
||||
<TextBox x:Name="BenutzernameTextBox" Grid.Row="1" Height="45" FontSize="14" VerticalContentAlignment="Center" TabIndex="0" PreviewKeyDown="BenutzernameTextBox_PreviewKeyDown"/>
|
||||
|
||||
<Label Content="Passwort:" Grid.Row="3" FontWeight="SemiBold"/>
|
||||
<PasswordBox x:Name="PasswortTextBox" Grid.Row="4" Height="45" FontSize="14"/>
|
||||
<PasswordBox x:Name="PasswortTextBox" Grid.Row="4" Height="45" FontSize="14" VerticalContentAlignment="Center" TabIndex="1"/>
|
||||
|
||||
<StackPanel Grid.Row="6" Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,20,0,0">
|
||||
<Button Content="Login" Width="140" Height="48" Margin="0,0,20,0" Background="#FF1E88E5" Foreground="White" FontWeight="Bold" Click="LogInButton_Click"/>
|
||||
<Button Content="Registrieren" Width="140" Height="48" Background="Transparent" BorderBrush="#DDD" Foreground="#666" Click="anmeldungsButton_Click"/>
|
||||
<Button Content="Login" Width="140" Height="48" Margin="0,0,20,0" Background="#FF1E88E5" Foreground="White" FontWeight="Bold" Click="LogInButton_Click" TabIndex="2" IsDefault="True"/>
|
||||
<Button Content="Registrieren" Width="140" Height="48" Background="Transparent" BorderBrush="#DDD" Foreground="#666" Click="anmeldungsButton_Click" TabIndex="3"/>
|
||||
</StackPanel>
|
||||
|
||||
<TextBlock Grid.Row="7" HorizontalAlignment="Center" Margin="0,20,0,0">
|
||||
|
||||
Reference in New Issue
Block a user