123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737 |
- <Window x:Class="Hammer_store.Authorization"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:Hammer_store"
- mc:Ignorable="d"
- Height="400"
- Width="500"
- ResizeMode="NoResize"
- WindowStartupLocation="CenterScreen"
- WindowStyle="None"
- AllowsTransparency="True"
- Background="Transparent"
- Icon="Resources/Images/logo2.png"
- Title="Hammer store (авторизация)">
- <Window.Resources>
- <!--** Кастомная кнопка "Войти" **-->
- <Style x:Key="FocusVisual">
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate>
- <Rectangle Margin="2" StrokeDashArray="1 2" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" SnapsToDevicePixels="true" StrokeThickness="1"/>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <SolidColorBrush x:Key="Button.Static.Background" Color="#FFDDDDDD"/>
- <SolidColorBrush x:Key="Button.Static.Border" Color="#FF707070"/>
- <SolidColorBrush x:Key="Button.MouseOver.Background" Color="Transparent"/>
- <SolidColorBrush x:Key="Button.MouseOver.Border" Color="White"/>
- <SolidColorBrush x:Key="Button.Pressed.Background" Color="Transparent"/>
- <SolidColorBrush x:Key="Button.Pressed.Border" Color="Transparent"/>
- <SolidColorBrush x:Key="Button.Disabled.Background" Color="#FFF4F4F4"/>
- <SolidColorBrush x:Key="Button.Disabled.Border" Color="#FFADB2B5"/>
- <SolidColorBrush x:Key="Button.Disabled.Foreground" Color="#FF838383"/>
- <Style x:Key="CustomButtonLogin" TargetType="{x:Type Button}">
- <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
- <Setter Property="Background" Value="{StaticResource Button.Static.Background}"/>
- <Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border}"/>
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
- <Setter Property="BorderThickness" Value="1"/>
- <Setter Property="HorizontalContentAlignment" Value="Center"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="Padding" Value="1"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true">
- <ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsDefaulted" Value="true">
- <Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Background" TargetName="border" Value="{StaticResource Button.MouseOver.Background}"/>
- <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.MouseOver.Border}"/>
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter Property="Background" TargetName="border" Value="{StaticResource Button.Pressed.Background}"/>
- <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Pressed.Border}"/>
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Background" TargetName="border" Value="{StaticResource Button.Disabled.Background}"/>
- <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Disabled.Border}"/>
- <Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground}"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!--Кастомная кнопка "Назад"-->
- <Style x:Key="FocusVisual1">
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate>
- <Rectangle Margin="2" StrokeDashArray="1 2" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" SnapsToDevicePixels="true" StrokeThickness="1"/>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <SolidColorBrush x:Key="Button.Static.Background1" Color="#FFDDDDDD"/>
- <SolidColorBrush x:Key="Button.Static.Border1" Color="#FF707070"/>
- <SolidColorBrush x:Key="Button.MouseOver.Background1" Color="Transparent"/>
- <SolidColorBrush x:Key="Button.MouseOver.Border1" Color="White"/>
- <SolidColorBrush x:Key="Button.Pressed.Background1" Color="Transparent"/>
- <SolidColorBrush x:Key="Button.Pressed.Border1" Color="Transparent"/>
- <SolidColorBrush x:Key="Button.Disabled.Background1" Color="#FFF4F4F4"/>
- <SolidColorBrush x:Key="Button.Disabled.Border1" Color="#FFADB2B5"/>
- <SolidColorBrush x:Key="Button.Disabled.Foreground1" Color="#FF838383"/>
- <Style x:Key="CustomButtonBack" TargetType="{x:Type Button}">
- <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual1}"/>
- <Setter Property="Background" Value="{StaticResource Button.Static.Background1}"/>
- <Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border1}"/>
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
- <Setter Property="BorderThickness" Value="1"/>
- <Setter Property="HorizontalContentAlignment" Value="Center"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="Padding" Value="1"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true">
- <ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsDefaulted" Value="true">
- <Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Background" TargetName="border" Value="{StaticResource Button.MouseOver.Background1}"/>
- <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.MouseOver.Border1}"/>
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter Property="Background" TargetName="border" Value="{StaticResource Button.Pressed.Background1}"/>
- <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Pressed.Border1}"/>
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Background" TargetName="border" Value="{StaticResource Button.Disabled.Background1}"/>
- <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Disabled.Border1}"/>
- <Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground1}"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Window.Resources>
- <!--** Добавление рамки с эффектом и градиентом **-->
- <Border CornerRadius="5"
- BorderThickness="5">
- <Border.BorderBrush>
- <LinearGradientBrush StartPoint="0 0" EndPoint="1 1">
- <GradientStop Color="#FF661579" Offset="0.0"/>
- <GradientStop Color="#282c36" Offset="0.5"/>
- <GradientStop Color="#FF661579" Offset="1.0"/>
- </LinearGradientBrush>
- </Border.BorderBrush>
- <!--** Добавление сетки для элементов внутри **-->
- <Grid>
- <!--* Фон для сетки *-->
- <Grid.Background>
- <LinearGradientBrush StartPoint="0 0" EndPoint="1 1">
- <GradientStop Color="#FF661579" Offset="0.0"/>
- <GradientStop Color="#282c36" Offset="0.5"/>
- <GradientStop Color="#FF661579" Offset="1.0"/>
- </LinearGradientBrush>
- </Grid.Background>
- <!--* Разметка сетки для элементов *-->
- <Grid.RowDefinitions>
- <RowDefinition Height="35"/>
- <RowDefinition Height="70"/>
- <RowDefinition Height="85"/>
- <RowDefinition Height="85"/>
- <RowDefinition Height="115"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <!--* ТайтлБар для опций с окном *-->
- <Grid Name="TitleBar"
- Grid.Row="0"
- Background="Transparent"
- MouseDown="TitleBar_MouseDown">
- <!--Изображение для закрытия формы-->
- <Image x:Name="Image_cross"
- Width="35"
- Height="35"
- HorizontalAlignment="Right"
- Margin="0 0 0 0"
- MouseDown="Image_cross_MouseDown">
-
- <Image.Effect>
- <DropShadowEffect Direction="270" BlurRadius="10"/>
- </Image.Effect>
- <Image.Style>
- <Style TargetType="{x:Type Image}">
- <Setter Property="Source"
- Value="Resources/Images/cross_NotActivate.png"/>
- <Style.Triggers>
- <DataTrigger Binding="{Binding IsMouseOver, ElementName=Image_cross}"
- Value="True">
- <Setter Property="Source"
- Value="Resources/Images/cross_Activate.png"/>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Image.Style>
- </Image>
- <!--Изображение для сворачивания формы-->
- <Image x:Name="Image_colapso"
- Width="25"
- Height="25"
- HorizontalAlignment="Right"
- Margin="0 0 40 0"
- MouseDown="Image_colapso_MouseDown">
-
- <Image.Effect>
- <DropShadowEffect Direction="270" BlurRadius="10"/>
- </Image.Effect>
- <Image.Style>
- <Style TargetType="{x:Type Image}">
- <Setter Property="Source"
- Value="Resources/Images/colapsoOne.png"/>
- <Style.Triggers>
- <DataTrigger Binding="{Binding IsMouseOver, ElementName=Image_colapso}"
- Value="True">
- <Setter Property="Source"
- Value="Resources/Images/colapsoTwo.png"/>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Image.Style>
- </Image>
- </Grid>
-
- <!--* Заголовок для формы *-->
- <Grid Name="Header"
- Grid.Row="1">
-
- <Label Content="Авторизация"
- HorizontalAlignment="Center"
- Foreground="Black"
- FontFamily="Fregat"
- FontSize="40"
- Height="50"
- Margin="0 0 0 0"
- Background="White"
- BorderThickness="0,0,0,0">
-
- <!--Закругленные углы-->
- <Label.Resources>
- <Style TargetType="Border">
- <Setter Property="CornerRadius"
- Value="5"/>
- </Style>
- </Label.Resources>
-
- <Label.Effect>
- <DropShadowEffect Direction="270" BlurRadius="10"/>
- </Label.Effect>
- </Label>
- </Grid>
-
- <!--* Поле ввода логина *-->
- <Grid Name="FieldLogin"
- Grid.Row="2">
- <!--Метка "Логин"-->
- <Label Content="Логин"
- VerticalAlignment="Top"
- HorizontalAlignment="Left"
- FontFamily="Fregat"
- Foreground="White"
- FontSize="30"
- Margin="103 0 0 0"/>
- <!--Поле ввода "Логина"-->
- <TextBox x:Name="textBox_InputLogin"
- Margin="105,0,0,10"
- FontSize="25"
- Padding="3,5,3,3"
- HorizontalAlignment="Left"
- VerticalAlignment="Bottom"
- Width="280"
- Height="40"
- FontFamily="Fregat"
- BorderBrush="{x:Null}"
- SelectionBrush="#FF9A00D7"
- BorderThickness="3,3,3,3"
- TabIndex="0"
- GotFocus="textBox_login_GotFocus"
- LostFocus="textBox_login_LostFocus">
- <TextBox.Resources>
- <Style TargetType="Border">
- <Setter Property="CornerRadius"
- Value="5"/>
- </Style>
- </TextBox.Resources>
- <TextBox.Effect>
- <DropShadowEffect Direction="270" BlurRadius="10"/>
- </TextBox.Effect>
- </TextBox>
- <!--Уведомления о неправильном логине-->
- <Label x:Name="labelErrorMessageOne_Login"
- Content="Ошибка. В начале не может быть числа!"
- HorizontalAlignment="Right"
- VerticalAlignment="Top"
- Background="Gray"
- Foreground="White"
- FontFamily="Fregat"
- Margin="0 0 40 0"
- FontSize="12"
- Visibility="Hidden">
- <Label.Resources>
- <Style TargetType="Border">
- <Setter Property="CornerRadius" Value="5"/>
- </Style>
- </Label.Resources>
- </Label>
- <Label x:Name="labelErrorMessageTwo_Login"
- Content="Ошибка. В начале не может быть спец. символа!"
- HorizontalAlignment="Right"
- VerticalAlignment="Top"
- Margin="0 0 5 0"
- Background="Gray"
- Foreground="White"
- FontFamily="Fregat"
- FontSize="12"
- Visibility="Hidden">
- <Label.Resources>
- <Style TargetType="Border">
- <Setter Property="CornerRadius" Value="5"/>
- </Style>
- </Label.Resources>
- </Label>
- <Label x:Name="labelErrorMessageThree_Login"
- Content="Ошибка. Такое имя уже существует!"
- HorizontalAlignment="Right"
- VerticalAlignment="Top"
- Margin="0 0 40 0"
- Foreground="White"
- Background="Gray"
- FontFamily="Fregat"
- FontSize="12"
- Visibility="Hidden">
- <Label.Resources>
- <Style TargetType="Border">
- <Setter Property="CornerRadius" Value="5"/>
- </Style>
- </Label.Resources>
- </Label>
- <Label x:Name="labelErrorMessageFour_Login"
- Content="Длина логина не может быть меньше 4 символов!"
- HorizontalAlignment="Right"
- VerticalAlignment="Top"
- Margin="0 0 5 0"
- Foreground="White"
- Background="Gray"
- FontFamily="Fregat"
- FontSize="12"
- Visibility="Hidden">
- <Label.Resources>
- <Style TargetType="Border">
- <Setter Property="CornerRadius" Value="5"/>
- </Style>
- </Label.Resources>
- </Label>
- <Label x:Name="labelErrorMessageFive_Login"
- Content="Ошибка. В логине не должны быть пробелы!"
- HorizontalAlignment="Right"
- VerticalAlignment="Top"
- Margin="0 0 20 0"
- Background="Gray"
- Foreground="White"
- FontFamily="Fregat"
- FontSize="12"
- Visibility="Hidden">
- <Label.Resources>
- <Style TargetType="Border">
- <Setter Property="CornerRadius" Value="5"/>
- </Style>
- </Label.Resources>
- </Label>
- <Polygon x:Name="ErrorMessagePolygon_Login"
- Width="50"
- Height="50"
- HorizontalAlignment="Right"
- VerticalAlignment="Top"
- Margin="0 -15 170 0"
- Fill="Gray"
- Points="15,35, 35,35 25,45"
- Visibility="Hidden"/>
- </Grid>
-
- <!--* Поле ввода пароля *-->
- <Grid Name="FieldPassword"
- Grid.Row="3">
- <!--Метка пароль-->
- <Label Content="Пароль"
- HorizontalAlignment="Left"
- VerticalAlignment="Top"
- FontFamily="Fregat"
- Foreground="White"
- FontSize="30"
- Margin="103 0 0 0"/>
- <!--Поле ввода пароля-->
- <PasswordBox x:Name="passwordBox_pass"
- HorizontalAlignment="Left"
- VerticalAlignment="Bottom"
- Margin="105 0 0 10"
- Width="280"
- Height="40"
- Padding="3,3,41,3"
- FontFamily="Fregat"
- FontSize="25"
- BorderBrush="{x:Null}"
- BorderThickness="3"
- SelectionBrush="#FF9A00D7"
- TabIndex="2"
- PasswordChar="●"
- LostFocus="passwordBox_pass_LostFocus"
- GotFocus="passwordBox_pass_GotFocus">
-
- <PasswordBox.Effect>
- <DropShadowEffect Direction="270" BlurRadius="10"/>
- </PasswordBox.Effect>
- <PasswordBox.Style>
- <Style TargetType="{x:Type PasswordBox}">
- <Style.Resources>
- <Style TargetType="Border">
- <Setter Property="CornerRadius" Value="5" />
- </Style>
- </Style.Resources>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type PasswordBox}">
- <Border x:Name="border"
- CornerRadius="5"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- Background="{TemplateBinding Background}"
- SnapsToDevicePixels="True">
- <ScrollViewer x:Name="PART_ContentHost"
- Focusable="false"
- HorizontalScrollBarVisibility="Hidden"
- VerticalScrollBarVisibility="Hidden"/>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsEnabled"
- Value="false">
- <Setter Property="Opacity"
- TargetName="border"
- Value="0.56"/>
- </Trigger>
- <Trigger Property="IsMouseOver"
- Value="true">
- <Setter Property="BorderBrush"
- TargetName="border"
- Value="#FF7EB4EA"/>
- </Trigger>
- <Trigger Property="IsKeyboardFocused"
- Value="true">
- <Setter Property="BorderBrush"
- TargetName="border"
- Value="#FF569DE5"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsInactiveSelectionHighlightEnabled"
- Value="true"/>
- <Condition Property="IsSelectionActive"
- Value="false"/>
- </MultiTrigger.Conditions>
- <Setter Property="SelectionBrush"
- Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}"/>
- </MultiTrigger>
- </Style.Triggers>
- </Style>
- </PasswordBox.Style>
- </PasswordBox>
- <!--TextBox для отображения пароля-->
- <TextBox x:Name="textBox_OutputPass"
- HorizontalAlignment="Left"
- VerticalAlignment="Bottom"
- Margin="105 0 0 10"
- Width="280"
- Height="40"
- Padding="3,5,41,3"
- FontFamily="Fregat"
- FontSize="25"
- BorderBrush="{x:Null}"
- BorderThickness="3"
- SelectionBrush="#FF9A00D7"
- Visibility="Hidden"
- TabIndex="1">
- <TextBox.Resources>
- <Style TargetType="{x:Type Border}">
- <Setter Property="CornerRadius" Value="5" />
- </Style>
- </TextBox.Resources>
- </TextBox>
- <!--Глаз для скрытия пароля-->
- <Image x:Name="Image_EyeHide1"
- Width="35"
- Height="35"
- Margin="322,38,83,12"
- Visibility="Visible"
- MouseDown="Image_EyeHide1_MouseDown">
- <Image.Style>
- <Style TargetType="{x:Type Image}">
- <Setter Property="Source"
- Value="Resources/Images/eye_hideBlack.png"/>
- <Style.Triggers>
- <DataTrigger Binding="{Binding IsMouseOver, ElementName=Image_EyeHide1}"
- Value="True">
- <Setter Property="Source"
- Value="Resources/Images/eye_hideGreen.png"/>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Image.Style>
- </Image>
- <!--Глаз для отображения пароля-->
- <Image x:Name="Image_EyeVisible1"
- Width="35"
- Height="35"
- Margin="322,38,83,12"
- MouseDown="Image_EyeVisible1_MouseDown"
- Visibility="Hidden">
- <Image.Style>
- <Style TargetType="{x:Type Image}">
- <Setter Property="Source"
- Value="Resources/Images/eye_visibleBlack.png"/>
- <Style.Triggers>
- <DataTrigger Binding="{Binding IsMouseOver, ElementName=Image_EyeVisible1}"
- Value="True">
- <Setter Property="Source"
- Value="Resources/Images/eye_visibleGreen.png"/>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Image.Style>
- </Image>
- <!--Уведомления о неверно введенном пароле-->
- <Label x:Name="labelErrorMessageOne_Pass1"
- Content="В пароле присутствует кириллица"
- HorizontalAlignment="Right"
- VerticalAlignment="Top"
- Background="Gray"
- Margin="0 0 50 0"
- FontFamily="Fregat"
- Foreground="White"
- FontSize="12"
- Visibility="Hidden">
- <Label.Resources>
- <Style TargetType="Border">
- <Setter Property="CornerRadius" Value="5"/>
- </Style>
- </Label.Resources>
- </Label>
- <Label x:Name="labelErrorMessageTwo_Pass1"
- Content="Ошибка. Длина пароля меньше 7 символов!"
- HorizontalAlignment="Right"
- VerticalAlignment="Top"
- Margin="0 0 10 0"
- FontSize="12"
- Background="Gray"
- Foreground="White"
- FontFamily="Fregat"
- Visibility="Hidden">
- <Label.Resources>
- <Style TargetType="Border">
- <Setter Property="CornerRadius" Value="5"/>
- </Style>
- </Label.Resources>
- </Label>
- <Label x:Name="labelErrorMessageThree_Pass1"
- Content="Ошибка. В пароле не должны быть пробелы!"
- HorizontalAlignment="Right"
- VerticalAlignment="Top"
- Margin="0 0 10 0"
- FontSize="12"
- Background="Gray"
- Foreground="White"
- FontFamily="Fregat"
- Visibility="Hidden">
- <Label.Resources>
- <Style TargetType="Border">
- <Setter Property="CornerRadius" Value="5"/>
- </Style>
- </Label.Resources>
- </Label>
- <Polygon x:Name="ErrorMessagePolygon_Pass1"
- Width="50"
- Height="50"
- HorizontalAlignment="Right"
- VerticalAlignment="Top"
- Margin="0 -15 170 0"
- Fill="Gray"
- Points="15,35, 35,35 25,45"
- Visibility="Hidden"/>
-
- </Grid>
-
- <!--Базовые кнопки-->
- <Grid Name="BaseButtons"
- Grid.Row="4">
- <!--Кнопка входа-->
- <Button Style="{DynamicResource CustomButtonLogin}"
- x:Name="button_signIn"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- Height="40"
- Width="90"
- Content="Войти"
- Foreground="White"
- BorderBrush="Gray"
- BorderThickness="2"
- Margin="0 10 0 0"
- FontSize="20"
- Click="button_signIn_Click"
- FontFamily="Fregat"
- TabIndex="2">
- <Button.Background>
- <LinearGradientBrush StartPoint="0 0" EndPoint="1 1">
- <GradientStop Color="#282c36" Offset="0.0"/>
- <GradientStop Color="#FF661579" Offset="0.5"/>
- <GradientStop Color="#282c36" Offset="1.0"/>
- </LinearGradientBrush>
- </Button.Background>
- <Button.Resources>
- <Style TargetType="Border">
- <Setter Property="CornerRadius"
- Value="5"/>
- </Style>
-
- </Button.Resources>
- <Button.Effect>
- <DropShadowEffect Direction="270" BlurRadius="10"/>
- </Button.Effect>
- </Button>
- <!--Кнопка назад-->
- <Button Style="{DynamicResource CustomButtonBack}" x:Name="button_backOnUserVerification"
- HorizontalAlignment="Left"
- VerticalAlignment="Bottom"
- Height="40"
- Width="90"
- Content="Назад"
- Foreground="White"
- BorderBrush="Gray"
- BorderThickness="3"
- FontSize="20"
- Margin="10 0 0 10"
- Click="button_backOnUserVerification_Click"
- FontFamily="Fregat"
- TabIndex="3">
- <Button.Background>
- <LinearGradientBrush StartPoint="0 0" EndPoint="1 1">
- <GradientStop Color="#282c36" Offset="0.0"/>
- <GradientStop Color="#FF661579" Offset="0.5"/>
- <GradientStop Color="#282c36" Offset="1.0"/>
- </LinearGradientBrush>
- </Button.Background>
- <Button.Resources>
- <Style TargetType="Border">
- <Setter Property="CornerRadius"
- Value="5"/>
- </Style>
-
- </Button.Resources>
- <Button.Effect>
- <DropShadowEffect Direction="270" BlurRadius="10"/>
- </Button.Effect>
- </Button>
- </Grid>
-
- </Grid>
- </Border>
- </Window>
|