Auth.axaml 1.7 KB

1234567891011121314151617181920212223242526
  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. x:DataType="vm:MainWindowViewModel"
  6. xmlns:vm="using:Auth.ViewModels"
  7. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  8. x:Class="Auth.Auth">
  9. <Design.DataContext>
  10. <!-- This only sets the DataContext for the previewer in an IDE,
  11. to set the actual DataContext for runtime, set the DataContext property in code (look at App.axaml.cs) -->
  12. <vm:AuthVM/>
  13. </Design.DataContext>
  14. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  15. <TextBox Text ="{Binding Auth_VM.Login}" IsEnabled="{Binding Auth_VM.Enabled}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="10" Width="200"/>
  16. <TextBox Text ="{Binding Auth_VM.Password}" IsEnabled="{Binding Auth_VM.Enabled}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="200"/>
  17. <Button Command="{Binding Knopka}" IsEnabled="{Binding Auth_VM.Enabled}" IsVisible="{Binding Auth_VM.Visible}" HorizontalAlignment="Center">Авторизация</Button>
  18. <UserControl Content="{Binding Auth_VM.Canva}" IsVisible="{Binding Auth_VM.VisibleText}"></UserControl>
  19. <TextBox Text ="{Binding Auth_VM.Proverka}" IsVisible="{Binding Auth_VM.VisibleText}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="200"/>
  20. <Button Command="{Binding ButtonPro}" IsVisible="{Binding Auth_VM.VisibleText}" HorizontalAlignment="Center">Подтвердить</Button>
  21. </StackPanel>
  22. </UserControl>