<Page x:Class="SdbS.View_Start.Pages.Registration"
      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:SdbS.View_Start.Pages"
      mc:Ignorable="d" 
      d:DesignHeight="320" 
      d:DesignWidth="260">

    <Grid Background="White">

        <Grid.RowDefinitions>
            <RowDefinition Height="40"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="50"/>
        </Grid.RowDefinitions>

        <!--Кнопка выхода в начальное меню-->
        <Button Content="Назад"
                Grid.Row="0"
                Margin="7"
                Padding="3"
                BorderBrush="#FF4CB034"
                BorderThickness="2"
                Background="#FFEFF5F7"
                HorizontalAlignment="Left"
                Command="NavigationCommands.BrowseBack">

            <Button.Resources>
                <Style TargetType="Border">
                    <Setter Property="CornerRadius" 
                            Value="5"/>
                </Style>

            </Button.Resources>

        </Button>

        <!--GroupBox в элементам для регистрации-->
        <GroupBox Header="Регистрация"
                  Width="160"
                  Grid.Row="1"
                  BorderBrush="Gray"
                  BorderThickness="2"
                  Height="150"
                  HorizontalAlignment="Center"
                  VerticalAlignment="Center"
                  FontSize="16">

            <Grid>

                <!--Сетка для элементов в GroupBox-->
                <Grid.RowDefinitions>
                    <RowDefinition Height="65"/>
                    <RowDefinition Height="75"/>
                </Grid.RowDefinitions>

                <!--Логин-->
                <TextBlock Grid.Row="0"
                           HorizontalAlignment="Left"   
                           Text="Логин:"
                           FontSize="15"
                           VerticalAlignment="Top"
                           Background="#FF4CB034"
                           Padding="3 0 3 0"
                           Foreground="White"
                           Margin="15 5 0 0"/>

                <TextBox Name="textBox_login"
                         Grid.Row="0"
                         BorderBrush="#FF4CB034"
                         Background="#FFEFF5F7"
                         HorizontalAlignment="Center" 
                         VerticalAlignment="Top" 
                         Width="120" 
                         Margin="0,30,0,0"/>

                <!--Пароль-->
                <TextBlock Grid.Row="1"
                           HorizontalAlignment="Left"   
                           Text="Пароль:" 
                           Foreground="White"
                           Background="#FF4CB034"
                           Padding="3 0 3 0"
                           FontSize="15"
                           VerticalAlignment="Top" 
                           Margin="15 0 0 0"/>

                <PasswordBox Name="passwordBox_password"
                             Grid.Row="1"    
                             BorderBrush="#FF4CB034"
                             Background="#FFEFF5F7"
                             HorizontalAlignment="Center" 
                             VerticalAlignment="Top" 
                             Width="120" 
                             Margin="0,25,0,0"/>
            </Grid>

        </GroupBox>

        <!--Кнопка регистрации-->
        <Button Grid.Row="2"
                Margin="7"
                Height="30"
                BorderBrush="#FF4CB034"
                BorderThickness="2"
                Background="#FFEFF5F7"
                VerticalAlignment="Bottom"
                Name="button_Registration"
                Content="Зарегистрироваться" 
                Click="button_Registration_Click">

            <Button.Resources>
                <Style TargetType="Border">
                    <Setter Property="CornerRadius" 
                            Value="5"/>
                </Style>

            </Button.Resources>

        </Button>

    </Grid>

</Page>