<Page x:Class="Детский_сад.Reg"
      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:Детский_сад"
      mc:Ignorable="d" 
      MaxHeight="480"
      MaxWidth="1000"
      d:DesignHeight="630" d:DesignWidth="1250"
      Title="Reg">

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="5*"/>
            <RowDefinition Height="65"/>
        </Grid.RowDefinitions>

        <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
            <StackPanel Style="{StaticResource spAvtorReg}">
                <TextBlock Text="Фамилия" Style="{StaticResource tbAvtorReg}"/>
                <TextBox Name="tboxSurname" Style="{StaticResource tboxReg}"/>
            </StackPanel>
            <StackPanel Style="{StaticResource spAvtorReg}">
                <TextBlock Text="Имя" Style="{StaticResource tbAvtorReg}"/>
                <TextBox Name="tboxName" Style="{StaticResource tboxReg}"/>
            </StackPanel>
            <StackPanel Style="{StaticResource spAvtorReg}">
                <TextBlock Text="Отчество" Style="{StaticResource tbAvtorReg}"/>
                <TextBox Name="tboxPatronymic" Style="{StaticResource tboxReg}"/>
            </StackPanel>
            <StackPanel Style="{StaticResource spAvtorReg}">
                <TextBlock Text="Дата рождения" Style="{StaticResource tbAvtorReg}"/>
                <DatePicker Name="dpBirthdate" Style="{StaticResource dpReg}"/>
            </StackPanel>
            <StackPanel Style="{StaticResource spAvtorReg}">
                <TextBlock Text="Пол" Style="{StaticResource tbAvtorReg}"/>
                <ComboBox Name="cbGender" Style="{StaticResource cbReg}"/>
            </StackPanel>
        </StackPanel>

        <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
            <StackPanel Style="{StaticResource spAvtorReg}">
                <TextBlock Text="Должность" Style="{StaticResource tbAvtorReg}" HorizontalAlignment="Center"/>
                <ComboBox Name="cbPositions" Style="{StaticResource cbReg}" Width="250" HorizontalContentAlignment="Center"/>
            </StackPanel>
        </StackPanel>

        <StackPanel Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center">
            <StackPanel Style="{StaticResource spAvtorReg}">
                <TextBlock Text="Улица" Style="{StaticResource tbAvtorReg}"/>
                <TextBox Name="tboxStreet" Style="{StaticResource tboxReg}"/>
            </StackPanel>
            <StackPanel Style="{StaticResource spAvtorReg}">
                <TextBlock Text="Строение" Style="{StaticResource tbAvtorReg}"/>
                <TextBox Name="tboxBuilding" Style="{StaticResource tboxReg}"/>
            </StackPanel>
            <StackPanel Style="{StaticResource spAvtorReg}">
                <TextBlock Text="Телефон" Style="{StaticResource tbAvtorReg}"/>
                <TextBox Name="tboxPhone" Style="{StaticResource tboxReg}"/>
            </StackPanel>
            <StackPanel Style="{StaticResource spAvtorReg}">
                <TextBlock Text="Логин" Style="{StaticResource tbAvtorReg}"/>
                <TextBox Name="tboxLogin" Style="{StaticResource tboxReg}"/>
            </StackPanel>
            <StackPanel Style="{StaticResource spAvtorReg}">
                <TextBlock Text="Пароль" Style="{StaticResource tbAvtorReg}"/>
                <TextBox Name="tboxPassword" Style="{StaticResource tboxReg}"/>
            </StackPanel>
        </StackPanel>

        <Button Name="btnReg" Content="Зарегистрироваться" Grid.Row="1" Grid.ColumnSpan="3" Template="{StaticResource btnTemplate}" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="10" Click="btnReg_Click"/>
    </Grid>
</Page>