Autorizahon.axaml 2.1 KB

12345678910111213141516171819202122232425262728293031
  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="550" d:DesignHeight="800"
  6. x:Class="Culusas.Views.Autorizahon"
  7. x:DataType="vm:MainWindowViewModel"
  8. xmlns:vm="using:Culusas.ViewModels"
  9. Background="#FF8C00">
  10. <Grid>
  11. <Border BorderBrush="#CC5500" BorderThickness="2" CornerRadius="9" Background="Black" Height="259" Width="350" Margin="0 -250 0 0" >
  12. <StackPanel Margin="100" Background="Black" Height="250" Width="300" >
  13. <TextBlock FontFamily="Century Gothic" Padding="10" Margin="6 2 0 6" Foreground="#FF8C00">Имя:</TextBlock>
  14. <TextBox IsEnabled="{Binding AutorixVM.Dilai}" FontFamily="Century Gothic" BorderBrush="#CC5500" Text = "{Binding AutorixVM.Login}" CornerRadius="9" Background="#FAA76C" Foreground="Black" Margin="6 -10 8 6" Watermark="Введите свой логин"/>
  15. <TextBlock FontFamily="Century Gothic" Padding="10" Margin="0 5" Foreground="#FF8C00">Пароль:</TextBlock>
  16. <TextBox FontFamily="Century Gothic" BorderBrush="#CC5500" CornerRadius="9" Text = "{Binding AutorixVM.Password}" Background="#FAA76C" Foreground="Black" Margin="6 -10 8 6" PasswordChar="*" Watermark="Введите свой пароль"/>
  17. <Button FontFamily="Century Gothic" BorderBrush="#FF8C00" CornerRadius="9" Background="#CC5500" Height="30" Width="200" VerticalAlignment="Bottom" Margin="40" HorizontalAlignment="Center" IsEnabled="{Binding AutorixVM.Dilai}" Command="{Binding NextCui}" >Войти в калькулятор -----></Button>
  18. </StackPanel>
  19. </Border>
  20. <StackPanel IsVisible="{Binding AutorixVM.Visibilitys}">
  21. <TextBlock HorizontalAlignment="Center">Введите капчу</TextBlock>
  22. <TextBox Text="{Binding AutorixVM.CaphaText}" TextAlignment="Center" PasswordChar="*" Name="Cap"></TextBox>
  23. <UserControl Content="{Binding AutorixVM.Caph}"></UserControl>
  24. </StackPanel>
  25. </Grid>
  26. </UserControl>