Page1.axaml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  6. xmlns:vm="using:AvaloniaApplication4.ViewModels"
  7. x:DataType="vm:MainWindowViewModel"
  8. x:Class="AvaloniaApplication4.Page1">
  9. <StackPanel HorizontalAlignment="Center" Margin="20">
  10. <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="20" Margin="0,10">Введите логин и пароль</TextBlock>
  11. <TextBox Text="{Binding Page1VM.Login, UpdateSourceTrigger=PropertyChanged}"
  12. Width="200"
  13. IsEnabled="{Binding Page1VM.Enabled}"
  14. Margin="0,5"/>
  15. <TextBox Text="{Binding Page1VM.Password, UpdateSourceTrigger=PropertyChanged}"
  16. Width="200"
  17. IsEnabled="{Binding Page1VM.Enabled}"
  18. Margin="0,5"/>
  19. <TextBlock Text="{Binding Page1VM.Res}" Margin="0,5"/>
  20. <TextBlock IsVisible="{Binding Page1VM.IsTBvis}" Margin="0,5">Введите каптчу</TextBlock>
  21. <TextBox Text="{Binding Page1VM.Enteredt}"
  22. IsVisible="{Binding Page1VM.IsTBvis}"
  23. Width="200"
  24. Margin="0,5"/>
  25. <Button Command="{Binding CheckCaptcha}"
  26. HorizontalAlignment="Center"
  27. IsVisible="{Binding Page1VM.IsButtonVisible2}"
  28. Width="200"
  29. Margin="0,5">Проверить</Button>
  30. <Button Command="{Binding proverka}"
  31. HorizontalAlignment="Center"
  32. IsVisible="{Binding Page1VM.IsButtonVisible}"
  33. Name="autorisation"
  34. Width="200"
  35. Margin="0,5">Войти</Button>
  36. <UserControl Content="{Binding Page1VM.Canva}"></UserControl>
  37. <TextBlock Text="{Binding Page1VM.Res1}" Margin="0,5"/>
  38. </StackPanel>
  39. </UserControl>