<Page x:Class="JAMM.Kasse.Pages.Login"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      mc:Ignorable="d" 
      d:DesignHeight="210" d:DesignWidth="600"
	Title="Login">
    <Grid x:Name="mainGrid" VerticalAlignment="Center" HorizontalAlignment="Center">
        <Grid.RowDefinitions>
            <RowDefinition Height="70" />
            <RowDefinition Height="70" />
            <RowDefinition Height="70" />

        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="200" />
            <ColumnDefinition Width="200" />
            <ColumnDefinition Width="200" />
        </Grid.ColumnDefinitions>
        <Label x:Name="userLabel" Grid.Column="0" Grid.Row="0" Width="120" HorizontalAlignment="Center" VerticalAlignment="Center">Nutzer:</Label>
        <ComboBox Name="userSelect" Grid.Column="1" Grid.Row="0" ItemsSource="{Binding Path=UserList}" DisplayMemberPath="UserName" Width="120" Height="30" HorizontalAlignment="Center" VerticalAlignment="Center" VerticalContentAlignment="Center" IsReadOnly="True" />
        <Label x:Name="passwordLabel" Grid.Column="0" Grid.Row="1" Width="120" HorizontalAlignment="Center" VerticalAlignment="Center">Passwort:</Label>
        <PasswordBox x:Name="passwordBox" Grid.Column="1" Grid.Row="1" KeyDown="OnKeyDownHandler" Width="120" Height="30" HorizontalAlignment="Center" VerticalAlignment="Center" VerticalContentAlignment="Center" />
        <Button x:Name="clearButton" Grid.Row="2" Grid.Column="0" Width="120" Height="50" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0, 0, 10, 0" Click="clearButton_Click">Clear</Button>
        <Button x:Name="loginButton" Grid.Row="2" Grid.Column="1" Width="120" Height="50" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0, 0, 10, 0" Click="loginButton_Click">Login</Button>
        <Label x:Name="wrongPW" BorderBrush="Red" Content="Wrong password!" Grid.Row="1" Grid.Column="2" Width="120" Height="50" VerticalAlignment="Bottom" HorizontalAlignment="Left" Visibility="Hidden"></Label>
    </Grid>
</Page>
