PageRegistrationV.axaml 1.4 KB

123456789101112131415161718192021222324252627
  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="using:Users_Roles.ViewModels"
  6. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  7. x:DataType="vm:PageRegistrationVM"
  8. x:Class="Users_Roles.PageRegistrationV">
  9. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" >
  10. <StackPanel>
  11. <Border Classes ="trash">
  12. <StackPanel>
  13. <Button IsVisible="{Binding IsVisAdmin}" Command="{Binding ToAddUser}" CommandParameter="1">Зарегистрировать администратора</Button>
  14. <TextBlock>Логин</TextBlock>
  15. <TextBox Text="{Binding Login}"></TextBox>
  16. <TextBlock>Пароль</TextBlock>
  17. <TextBox PasswordChar="*" Text="{Binding Password}"></TextBox>
  18. <Button IsVisible="{Binding IsVisUser}" Command="{Binding ToAddUser}" CommandParameter="2">Зарегистрироваться</Button>
  19. <Button IsVisible="{Binding IsVisUser}" Command="{Binding ToAuth}">Авторизоваться</Button>
  20. <TextBlock Foreground="Red" Text="{Binding Massege}"></TextBlock>
  21. </StackPanel >
  22. </Border>
  23. </StackPanel>
  24. </StackPanel>
  25. </UserControl>