avtorizacia.axaml 1.4 KB

12345678910111213141516171819
  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="clr-namespace:shkola.ViewModels"
  6. x:DataType="vm:MainWindowViewModel"
  7. mc:Ignorable="d" d:DesignWidth="600" d:DesignHeight="450"
  8. x:Class="shkola.avtorizacia">
  9. <StackPanel Margin="15" VerticalAlignment="Center">
  10. <TextBox Width="400" Watermark="Введите логин" TextAlignment="Center" IsEnabled="{Binding LP.Enable}" Text = "{Binding LP.GetSetLogin}" Name="Login"/>
  11. <TextBox Margin="0 10 0 0" Width="400" IsEnabled="{Binding LP.Enable}" TextAlignment="Center" Text="{Binding LP.GetSetPass}" PasswordChar="*" Name="Pass" Watermark="Введите пароль"/>
  12. <StackPanel IsVisible="{Binding LP.Visibility}">
  13. <TextBlock Margin="0 20 0 0" HorizontalAlignment="Center">CAPTCHA</TextBlock>
  14. <TextBox Width="400" Watermark="Введите капчу" TextAlignment="Center" Text="{Binding LP.CapText}"/>
  15. <UserControl Content="{Binding LP.Capcha}"></UserControl>
  16. </StackPanel>
  17. <Button Margin="0 10 0 0" Width="400" HorizontalAlignment="Center" IsEnabled="{Binding LP.Enable}" Command="{Binding toCalculator}">Войти</Button>
  18. </StackPanel>
  19. </UserControl>