<Window x:Class="FSI.Lib.Guis.AutoPw.FrmMain"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:FSI.Lib.Guis.AutoPw"
        mc:Ignorable="d"
        Title="Passwort eingeben"
        SizeToContent="WidthAndHeight"
        Height="Auto"
        Width="Auto"
        Icon="../../Icons/FondiumU.ico"
        WindowStyle="ToolWindow">

    <Grid FocusManager.FocusedElement="{Binding ElementName=TbPw}">
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <StackPanel Orientation="Horizontal">
            <TextBlock Text="Passwort:"
                       Margin="5 5" />
            <PasswordBox x:Name="TbPw"
                         Margin=" 5 5 5 5"
                         MinWidth="150"
                         PasswordChanged="TbPw_PasswordChanged" 
                         KeyDown="TbPw_KeyDown"/>
        </StackPanel>

        <StackPanel Grid.Row="1"
                    Orientation="Horizontal">
            <Button x:Name="BtnOk"
                    Content="Ok"
                    MinWidth="75"
                    Click="BtnOk_Click"
                    Margin="5 5 " />

            <Button x:Name="BtnCancel"
                    Content="Abbruch"
                    MinWidth="75"
                    Click="BtnCancel_Click"
                    Margin="5 5 " />

        </StackPanel>

        <StatusBar Grid.Row="2">
            <StatusBarItem HorizontalAlignment="Right">
                <TextBlock Text="{Binding CurrentTime}" />
            </StatusBarItem>
        </StatusBar>
    </Grid>
</Window>
