Auth.axaml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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:AuthAndCaptcha.ViewModels"
  6. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  7. x:Class="AuthAndCaptcha.Auth"
  8. x:DataType="vm:MainWindowViewModel">
  9. <Grid>
  10. <StackPanel>
  11. <StackPanel Classes="authSP">
  12. <TextBlock Classes="authMainTitle">Авторизация</TextBlock>
  13. </StackPanel>
  14. <StackPanel Classes="loginPasswordSP">
  15. <StackPanel Classes="loginPasswordT">
  16. <TextBlock>логин</TextBlock>
  17. <TextBox Classes="authTB" Name="loginTextBox" Text="{Binding AuthVM.UsersLogin}"></TextBox>
  18. </StackPanel>
  19. <StackPanel Classes="loginPasswordT">
  20. <TextBlock>пароль</TextBlock>
  21. <TextBox Classes="authTB" Text="{Binding AuthVM.UsersPassword}"></TextBox>
  22. </StackPanel>
  23. </StackPanel>
  24. <StackPanel Classes="authSP">
  25. <Button Classes="authBut" Command="{Binding Check}" IsVisible="{Binding AuthVM.AuthButtonVisible}">Войти</Button>
  26. </StackPanel>
  27. <StackPanel Classes="authSP" IsVisible="{Binding AuthVM.CanTextVisible}">
  28. <StackPanel Classes="authSP">
  29. <TextBlock>Введите данные заново и впишите цифры с рисунка</TextBlock>
  30. </StackPanel>
  31. <UserControl Content="{Binding AuthVM.Can}"></UserControl>
  32. <StackPanel Classes="authSP">
  33. <TextBox Classes="authTB" Text="{Binding AuthVM.CanText}"></TextBox>
  34. </StackPanel>
  35. <StackPanel Classes="authSP">
  36. <Button Classes="authBut" Command="{Binding CheckCaptcha}">Проверить</Button>
  37. </StackPanel>
  38. </StackPanel>
  39. </StackPanel>
  40. </Grid>
  41. </UserControl>