123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- <UserControl xmlns="https://github.com/avaloniaui"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:vm="using:FinancialManagement.ViewModels"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- mc:Ignorable="d" d:DesignWidth="1600" d:DesignHeight="1080"
- x:Class="FinancialManagement.Views.AuthorizationPage"
- x:DataType="vm:MainWindowViewModel">
-
- <UserControl.Styles>
- <Style Selector="TextBox">
- <Setter Property="FontFamily" Value="{StaticResource Nunito}" />
- <Setter Property="Foreground" Value="#7471E8" />
- <Setter Property="CornerRadius" Value="6" />
- <Setter Property="BorderThickness" Value="0" />
- </Style>
- <Style Selector="TextBlock">
- <Setter Property="FontFamily" Value="{StaticResource NunitoBold}" />
- </Style>
- <Style Selector="Button">
- <Setter Property="FontFamily" Value="{StaticResource NunitoBold}" />
- </Style>
- </UserControl.Styles>
- <Grid Background="#7471E8" RowDefinitions="*" ColumnDefinitions="*">
- <StackPanel Orientation="Horizontal">
- <Image
- Source="avares://FinancialManagement/Assets/BackroundFon.png"
- Stretch="Fill"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Width="1550"/>
- </StackPanel>
- <StackPanel
- HorizontalAlignment="Center"
- Orientation="Vertical"
- VerticalAlignment="Center">
- <Border
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Grid.Row="0" Grid.Column="1"
- Background="#E3E6FF"
- CornerRadius="10"
- Padding="0 0 0 0"
- Width="616"
- Height="530">
- <StackPanel
- Orientation="Vertical"
- VerticalAlignment="Center"
- Width="480">
- <TextBlock
- FontSize="64"
- Foreground="#000000"
- HorizontalAlignment="Center"
- Padding="0 0 0 0"
- Margin="30 0 30 40"
- Text="Вход"/>
- <TextBox
- FontSize="24"
- Watermark="Логин"
- Padding="10 20 0 20"
- Margin="0 -20 0 30"
- Text="{Binding AuthorizationPageVM.Login}"/>
- <StackPanel HorizontalAlignment="Right">
- <Button
- Background="Transparent"
- FontSize="18"
- Foreground="#7471E8"
- Content="Показать пароль"
- Margin="0 -10 0 -5"
- Command="{Binding ShowHidePasswordAuthorization}">
- <Button.Styles>
- <Style Selector="Button:pointerover /template/ ContentPresenter">
- <Setter Property="Background" Value="Transparent"></Setter>
- <Setter Property="Foreground" Value="#30DD6B"></Setter>
- </Style>
- </Button.Styles>
- </Button>
- </StackPanel>
- <TextBox
- FontSize="24"
- Watermark="Пароль"
- PasswordChar="{Binding AuthorizationPageVM.PasswordChar}"
- Padding="10 20 0 20"
- Margin="0 0 0 30"
- Text="{Binding AuthorizationPageVM.Password}"/>
- <StackPanel
- Orientation="Horizontal"
- HorizontalAlignment="Center"
- VerticalAlignment="Center">
- <TextBlock
- FontSize="24"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Foreground="#000000"
- Text="Нет аккаунта?"/>
- <Button
- FontSize="24"
- Foreground="#7471E8"
- Content="Зарегистрируйтесь"
- Background="Transparent"
- Command="{Binding ToRegistrationPage}">
- <Button.Styles>
- <Style Selector="Button:pointerover /template/ ContentPresenter">
- <Setter Property="Background" Value="Transparent"></Setter>
- <Setter Property="Foreground" Value="#30DD6B"></Setter>
- </Style>
- </Button.Styles>
- </Button>
- </StackPanel>
- <TextBlock
- FontSize="24"
- Foreground="Red"
- HorizontalAlignment="Center"
- Margin="0 10 0 10"
- Text="{Binding AuthorizationPageVM.Message}"/>
- <Button
- CornerRadius="10"
- Content="Войти"
- Background="#7471E8"
- Foreground="White"
- FontSize="40"
- Padding="20 10 20 10"
- HorizontalAlignment="Stretch"
- HorizontalContentAlignment="Center"
- Margin="0 0 0 30"
- Command="{Binding LodedToProgram}">
- <Button.Styles>
- <Style Selector="Button:pointerover /template/ ContentPresenter">
- <Setter Property="Background" Value="#A3A0FB"></Setter>
- <Setter Property="Foreground" Value="White"></Setter>
- </Style>
- </Button.Styles>
- </Button>
- </StackPanel>
- </Border>
- </StackPanel>
- </Grid>
- </UserControl>
|