JAPWT / View / AuthorizationPages / AuthorizationPage.xaml
AuthorizationPage.xaml
Raw
<Page x:Class="MyApp.AuthorizationPage"
      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="AuthorizationPage">

    <Grid Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="15">
            </RowDefinition>
            <RowDefinition Height="45"/>
            <RowDefinition/>
            <RowDefinition/>
            <RowDefinition/>
            <RowDefinition/>
            <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="LoginTB" Text="Логин" Padding="9" FontSize="15" FontWeight="Bold" Foreground="#6BFFFFFF" Grid.Row="3" MinWidth="400" MinHeight="40" Height="40" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" MouseEnter="LoginTB_MouseEnter" MouseLeave="LoginTB_MouseLeave" Background="#E5FF4B4B"/>
        <PasswordBox Name="PasswordPB" Visibility="Visible"  Password="Пароль" Padding="9" FontSize="15" FontWeight="Bold" Foreground="#6BFFFFFF" Grid.Row="4" MinWidth="400" MinHeight="40" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" 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="4" MinWidth="400" MinHeight="40" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Background="#E5FF4B4B" MouseEnter="ShowPasswordPB_MouseEnter" MouseLeave="ShowPasswordPB_MouseLeave">
        </TextBox>
        <Button Content="👁" FontSize="15" Margin="160,26,205,26" Grid.Row="4" Grid.Column="1" BorderThickness="0" Foreground="#FFFFFF" Background="Transparent" Click="ShowPassword_Click"/>

        <Button Name="ForgotPasswordButton" Content="»»Восстановить пароль««" MinWidth="200" Background="White" BorderThickness="0" Foreground="Gray" Grid.Row="5" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Top" Click="ForgotPasswordButton_Click"/>
        <TextBlock Name="UncorrectTB" Visibility="Collapsed" Text="Введены некорректные данные" Foreground="Red" Grid.Row="5" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.ColumnSpan="2"/>

        <Button Style="{DynamicResource KrugliyUgolButton}" Name="EnterButton" FontWeight="Bold" Content="ВОЙТИ" MinWidth="100" Height="30"  Grid.Row="7" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFF" Background="#E5FF4B4B" Click="EnterButton_Click"/>
    </Grid>
</Page>