AuthorizationPage.axaml 1.9 KB

12345678910111213141516171819202122232425262728
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:vm="using:AvaloniaApplication3.ViewModels"
  6. mc:Ignorable="d" d:DesignWidth="500" d:DesignHeight="600"
  7. x:Class="AvaloniaApplication3.Views.AuthorizationPage"
  8. x:DataType="vm:MainWindowViewModel"
  9. x:CompileBindings="True">
  10. <StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
  11. <Image Margin="0 0 0 12" Source="/Images/waving-hand.png" Height="30" Width="30" HorizontalAlignment="Left"/>
  12. <TextBlock Text="С возвращением!" Margin="0 0 0 12" Classes="title"/>
  13. <TextBlock Text="Авторизуйтесь, чтобы получить доступ к аккунту" Margin="0 0 0 62"/>
  14. <StackPanel Orientation="Vertical" Margin="0 0 0 30">
  15. <TextBlock Text="Логин" Margin="0 0 0 10"/>
  16. <TextBox Watermark="Введите ваш логин" Text="{Binding Login}"/>
  17. </StackPanel>
  18. <StackPanel Orientation="Vertical" Margin="0 0 0 44">
  19. <TextBlock Text="Пароль" Margin="0 0 0 10"/>
  20. <TextBox Classes="revealPasswordButton" Text="{Binding Pass}" PasswordChar="•" Watermark="Введите ваш пароль" Margin="0 0 0 10"/>
  21. <TextBlock Classes="error" Text="{Binding ErrorMessage}" Margin="0 0 0 30"></TextBlock>
  22. <Button Classes="blueBtn" HorizontalAlignment="Stretch" Command="{Binding LogIn}" CommandParameter="{Binding $parent[Window]}">Войти</Button>
  23. </StackPanel>
  24. <TextBlock Text="Нет аккаунта? / Забыли пароль (потом)" Margin="0 0 0 10" HorizontalAlignment="Center"/>
  25. <Button Content="Зарегестироваться" HorizontalAlignment="Center" Command="{Binding ToRegisterPage}"/>
  26. </StackPanel>
  27. </UserControl>