AddUserV.axaml 1.3 KB

123456789101112131415161718192021222324252627282930
  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:AddUserVM"
  8. xmlns:conv="using:Users_Roles.Converters"
  9. x:Class="Users_Roles.AddUserV">
  10. <UserControl.Resources>
  11. <conv:ImageConverter x:Key="myImageConverter"/>
  12. </UserControl.Resources>
  13. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" >
  14. <StackPanel>
  15. <Border Classes ="trash">
  16. <StackPanel>
  17. <TextBlock>ФИО</TextBlock>
  18. <TextBox Text="{Binding NewUser.Fio}"></TextBox>
  19. <TextBlock>Логин</TextBlock>
  20. <TextBox Text="{Binding NewUser.Login}"></TextBox>
  21. <TextBlock>Пароль</TextBlock>
  22. <TextBox PasswordChar="*" Text="{Binding NewPassword}"></TextBox>
  23. <Button Command="{Binding AddOnePhoto}">Выбрать фото</Button>
  24. <Button Command="{Binding AddUser}" Content="{Binding MessageButton}"/>
  25. <TextBlock Foreground="Red" Text="{Binding Massege}"></TextBlock>
  26. </StackPanel>
  27. </Border>
  28. </StackPanel>
  29. </StackPanel>
  30. </UserControl>