Autorization.axaml 1.8 KB

12345678910111213141516171819202122232425262728293031323334
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:vm="using:avaloniaPr.ViewModels"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  7. x:DataType="vm:MainWindowViewModel"
  8. x:Class="avaloniaPr.Views.Autorization">
  9. <Grid Background="Gray">
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="0.1*"/>
  12. <RowDefinition Height="0.3*"/>
  13. <RowDefinition Height="0.3*"/>
  14. <RowDefinition Height="0.6*"/>
  15. </Grid.RowDefinitions>
  16. <Grid.ColumnDefinitions>
  17. <ColumnDefinition Width="0.3*"/>
  18. <ColumnDefinition/>
  19. <ColumnDefinition Width="0.3*"/>
  20. </Grid.ColumnDefinitions>
  21. <TextBlock Text="Авторизация" Classes="centerTB" Grid.Row="1" Grid.Column="1"/>
  22. <StackPanel Grid.Row="2" Grid.Column="1">
  23. <TextBox Name="TBLogin" Text="{Binding LoginUs}" IsEnabled="{Binding Enabled}" Classes="TBMain"/>
  24. <TextBox Name="TBPassword" Text="{Binding PasswordUs}" IsEnabled="{Binding Enabled}" Classes="TBMain"/>
  25. </StackPanel>
  26. <StackPanel Grid.Row="3" Grid.Column="1">
  27. <UserControl Content="{Binding CanvasText}" IsVisible="{Binding VisibilityCaptcha}"/>
  28. <TextBox Text="{Binding Capcha}" IsVisible="{Binding VisibilityCaptcha}" Classes="TBMain" Width="210"/>
  29. <TextBlock Text="{Binding Waiting}" IsVisible="{Binding VisibilityWaiting}" Classes="centerTB"/>
  30. <Button IsVisible="{Binding VisibilityCaptcha}" Command="{Binding CommandCaptcha}" Content="Отправить" Classes="ButtonStyle"/>
  31. <Button Content="{Binding AutorizationVM.TextButton}" Command="{Binding AutorizationButton}" IsVisible="{Binding VisibilityButton}" Classes="ButtonStyle"/>
  32. </StackPanel>
  33. </Grid>
  34. </UserControl>