<Window x:Class="Work29.MainWindow"
        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:Work29"
        mc:Ignorable="d"
        Title="Авторизация" MinHeight="350" MinWidth="700" Height="350" Width="700" MaxHeight="450" MaxWidth="800">
    <Grid Background="Black">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Label Foreground="White" Content="Логин:" FontSize="18" Grid.Column="1" Grid.Row="1" HorizontalContentAlignment="Center" VerticalContentAlignment="Bottom"/>
        <TextBox Name="textBox_Login" Foreground="Black" Text="{Binding User.Login}" Grid.Column="1" Grid.Row="2" Height="25" FontSize="18" VerticalAlignment="Top" HorizontalAlignment="Center" Width="200"/>
        <Label Foreground="White" Content="Пароль:" FontSize="18" Grid.Column="1" Grid.Row="2" HorizontalContentAlignment="Center" VerticalContentAlignment="Bottom" Height="30" VerticalAlignment="Bottom"/>
        <PasswordBox Name="textBox_Password" Foreground="Black" Grid.Column="1" Grid.Row="3" Height="25" FontSize="18" VerticalAlignment="Top" HorizontalAlignment="Center" Width="200"/>
        <Button x:Name="button_registry" Command="{Binding RegNew}" Grid.Column="1" Grid.Row="3" Content="Регистрация" FontSize="18" Foreground="Black" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="110"/>
        <Button x:Name="button_auto" Command="{Binding AutoReady}" CommandParameter="{Binding ElementName=textBox_Password}" Grid.Column="1" Grid.Row="3" Content="Войти" FontSize="18" Foreground="Black" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="110"/>
    </Grid>
</Window>
