<Page x:Class="MyApp.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:MyApp"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800"
Title="RegistrationPage">
<Grid Background="White">
<Grid.RowDefinitions>
<RowDefinition Height="15">
</RowDefinition>
<RowDefinition Height="45"/>
<RowDefinition/>
<RowDefinition Height="52"/>
<RowDefinition Height="52"/>
<RowDefinition Height="52"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Row="0" Grid.ColumnSpan="2" Width="800" Orientation="Horizontal" HorizontalAlignment="Right">
<StackPanel.LayoutTransform>
<RotateTransform Angle="180"/>
</StackPanel.LayoutTransform>
<StackPanel.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#940000" Offset="0"/>
<GradientStop Color="#FF4B4B " Offset="1"/>
</LinearGradientBrush>
</StackPanel.Background>
<Button Content="X" Grid.Column="1" Foreground="#FFFFFF" BorderThickness="0" Height="15" Width="15" Click="Button_Click">
<Button.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#940000" Offset="0"/>
<GradientStop Color="#FF4B4B " Offset="1"/>
</LinearGradientBrush>
</Button.Background>
</Button>
<Button Content="-" Grid.Column="1" Foreground="#FFFFFF" BorderThickness="0" Height="15" Width="15" Click="Button_Click_1">
<Button.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#940000" Offset="0"/>
<GradientStop Color="#FF4B4B " Offset="1"/>
</LinearGradientBrush>
</Button.Background>
</Button>
</StackPanel>
<Button Name="AuthorizationPageButton" Content="Авторизация" Click="AuthorizationPageButton_Click" FontWeight="Bold" BorderBrush="Black" Grid.Row="1" Foreground="#FFFFFF" Background="#E5FF4B4B"/>
<Button Name="RegistrationPageButton" Content="Регистрация" Grid.Column="1" Grid.Row="1" Foreground="#FFFFFF" FontWeight="Bold" BorderBrush="Black" Background="#E5FF4B4B" Grid.ColumnSpan="2" Click="RegistrationPageButton_Click"/>
<TextBlock Text="Создание аккаунта" FontSize="30" FontWeight="Bold" Grid.Row="2" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock.Foreground>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#FF000F" Offset="0"/>
<GradientStop Color="#FFFFFF" Offset="1"/>
</LinearGradientBrush>
</TextBlock.Foreground>
</TextBlock>
<TextBox Name="NameTB" Text="Имя" Padding="9" FontSize="15" FontWeight="Bold" Foreground="#6BFFFFFF" Grid.Row="3" MinWidth="400" MinHeight="40" Height="40" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Top" MouseEnter="NameTB_MouseEnter" MouseLeave="NameTB_MouseLeave" Background="#E5FF4B4B"/>
<TextBox Name="SurnameTB" Text="Фамилия" Padding="9" FontSize="15" FontWeight="Bold" Foreground="#6BFFFFFF" Grid.Row="4" MinWidth="400" MinHeight="40" Height="40" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Top" MouseEnter="SurnameTB_MouseEnter" MouseLeave="SurnameTB_MouseLeave" Background="#E5FF4B4B"/>
<TextBox Name="LoginTB" Text="Логин" Padding="9" FontSize="15" FontWeight="Bold" Foreground="#6BFFFFFF" Grid.Row="5" MinWidth="400" MinHeight="40" Height="40" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Top" MouseEnter="LoginTB_MouseEnter" MouseLeave="LoginTB_MouseLeave" Background="#E5FF4B4B"/>
<PasswordBox Name="PasswordPB" Visibility="Visible" Password="Пароль" Padding="9" FontSize="15" FontWeight="Bold" Foreground="#6BFFFFFF" Grid.Row="6" MinWidth="400" MinHeight="40" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Top" MouseEnter="PasswordPB_MouseEnter" MouseLeave="PasswordPB_MouseLeave" Background="#E5FF4B4B">
</PasswordBox>
<TextBox Name="ShowPasswordPB" Visibility="Collapsed" Text="{Binding Password, Mode=TwoWay, ElementName=PasswordPB}" Padding="9" FontSize="15" FontWeight="Bold" Foreground="#6BFFFFFF" Grid.Row="6" MinWidth="400" MinHeight="40" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Top" MouseEnter="ShowPasswordPB_MouseEnter" MouseLeave="ShowPasswordPB_MouseLeave" Background="#E5FF4B4B">
</TextBox>
<Button Content="👁" FontSize="15" Margin="155,9,210,0" Grid.Row="6" Grid.Column="1" VerticalAlignment="Top" BorderThickness="0" Foreground="#FFFFFF" Background="Transparent" Click="ShowPassword_Click" RenderTransformOrigin="0.571,-0.41"/>
<TextBlock Name="UncorrectTB" Visibility="Collapsed" Text="Такой аккаунт существует!" Foreground="Red" Grid.Row="6" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.ColumnSpan="2"/>
<Button Style="{DynamicResource KrugliyUgolButton}" Name="RegisterButton" FontWeight="Bold" Content="ЗАРЕГИСТРИРОВАТЬСЯ" MinWidth="100" Height="30" Grid.Row="6" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Top" Foreground="#FFFFFF" Background="#E5FF4B4B" Margin="0,71,0,0" Width="320" RenderTransformOrigin="0.5,1.267" Click="RegisterButton_Click"/>
</Grid>
</Page>