<Window x:Class="Rkis29.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:Rkis29" xmlns:converters="clr-namespace:Rkis29.Converter" xmlns:viewmodel="clr-namespace:Rkis29.ViewModel" d:DataContext="{d:DesignInstance Type=viewmodel:VMAutor}"
        mc:Ignorable="d"
        Title="MainWindow" Name="MainWnd" Height="400" Width="500">
    <Window.Resources>
        <converters:Converter x:Key="Converter"></converters:Converter>
    </Window.Resources>
    <Grid>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="19*"/>
                <ColumnDefinition Width="auto" MinWidth="108"/>
                <ColumnDefinition Width="auto" MinWidth="375"/>
                <ColumnDefinition Width="24*"/>
                <ColumnDefinition Width="24*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="100*"/>
                <RowDefinition Height="50*"/>
                <RowDefinition Height="50*"/>
                <RowDefinition Height="50*"/>
                <RowDefinition Height="50*"/>
                <RowDefinition Height="50*"/>
                <RowDefinition Height="100*"/>
            </Grid.RowDefinitions>
            <Label Grid.Row="1" Grid.Column="2" Content="Авторизация" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="18" Height="40" Width="142" Margin="90,0,0,0"/>
            <TextBox Grid.Row="2" Grid.Column="2" x:Name="Login" Text="{Binding Login}" FontSize="16" HorizontalAlignment="Left" Width="244" Height="38" VerticalAlignment="Bottom" Cursor="Arrow" Margin="29,0,0,4"/>
            <PasswordBox Grid.Row="3" Grid.Column="2" x:Name="Password" FontSize="16" HorizontalAlignment="Left" Width="244" Height="34" VerticalAlignment="Center" Cursor="Arrow" Margin="29,0,0,0"/>
            <TextBlock Grid.Row="2" Grid.Column="1" Height="20" Width="60" Text="Логин:" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="14" Margin="48,0,0,0"/>
            <TextBlock Grid.Row="3" Grid.Column="1" Height="20" Width="60" Text="Пароль:" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="14" Margin="48,0,0,0"/>
            <Button  Grid.Row="4" Grid.Column="2" Content="Войти" Command="{Binding Autho_ready}"  FontSize="14" Margin="29,0,0,0" HorizontalAlignment="Left" Width="122" Cursor="Hand" RenderTransformOrigin="-0.102,0.514" Height="28" VerticalAlignment="Center" Click="Button_Click">
                <Button.CommandParameter>
                    <MultiBinding Converter= "{StaticResource Converter}">
                        <Binding ElementName="Password"></Binding>
                        <Binding ElementName="MainWnd"></Binding>
                    </MultiBinding>
                </Button.CommandParameter>
            </Button>
            <Button  Grid.Row="4" Grid.Column="2" Content="Регистрация" Command="{Binding RegistrWND}" CommandParameter="{Binding ElementName=MainWnd}" VerticalAlignment="Center" FontSize="14" Height="28" Margin="156,0,0,0" Cursor="Hand" RenderTransformOrigin="1.137,0.639" HorizontalAlignment="Left" Width="117"/>
        </Grid>
    </Grid>
</Window>
