<Page x:Class="ViolationNOT.RegistrationPage"
      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" 
      xmlns:local="clr-namespace:ViolationNOT"
      mc:Ignorable="d" 
      d:DesignHeight="450" d:DesignWidth="800"
      Title="НарушениямНет - Регистрация">

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition/>
            <RowDefinition/>
            <RowDefinition/>
            <RowDefinition/>
            <RowDefinition/>
            <RowDefinition/>
            <RowDefinition/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <TextBlock HorizontalAlignment="Right" VerticalAlignment="Center">Логин</TextBlock>
        <TextBox Grid.Column="1" Text="{Binding Login}" Margin="5,0,150,0"></TextBox>
        <PasswordBox Grid.Row="1" Grid.Column="1" x:Name="TxtPassword" Margin="5,0,150,0"></PasswordBox>
        <TextBlock Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="5">Пароль</TextBlock>
        <PasswordBox Grid.Row="2" Grid.Column="1" x:Name="TxtRepeatPassword" Margin="5,0,150,0"></PasswordBox>
        <TextBlock Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="5">Повторите пароль</TextBlock>
        <TextBlock Grid.Row="3" HorizontalAlignment="Right" VerticalAlignment="Center">Фамилия</TextBlock>
        <TextBox Grid.Row="3" Grid.Column="1" Text="{Binding LastName}" Margin="5,0,150,0"></TextBox>
        <TextBlock Grid.Row="4" HorizontalAlignment="Right" VerticalAlignment="Center">Имя</TextBlock>
        <TextBox Grid.Row="4" Grid.Column="1" Text="{Binding Name}" Margin="5,0,150,0"></TextBox>
        <TextBlock Grid.Row="5" HorizontalAlignment="Right" VerticalAlignment="Center">Отчество</TextBlock>
        <TextBox Grid.Row="5" Grid.Column="1" Text="{Binding MiddleName}" Margin="5,0,150,0"></TextBox>
        <TextBlock Grid.Row="6" HorizontalAlignment="Right" VerticalAlignment="Center">Телефон</TextBlock>
        <TextBox Grid.Row="6" Grid.Column="1" Text="{Binding Phone}" Margin="5,0,150,0" MaxLength="12"></TextBox>
        <TextBlock Grid.Row="7" HorizontalAlignment="Right" VerticalAlignment="Center">Email</TextBlock>
        <TextBox Grid.Row="7" Grid.Column="1" Text="{Binding Email}" Margin="5,0,150,0"></TextBox>
        <Button x:Name="BtnRegistration" Grid.Row="8" Grid.ColumnSpan="2" Click="BtnRegistration_Click" Margin="250,0,250,0">Зарегистрироваться</Button>
    </Grid>
</Page>
