UpdateUsers.axaml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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="800" d:DesignHeight="450"
  6. x:Class="AvaloniaApplication1.UpdateUsers"
  7. xmlns:vm="using:AvaloniaApplication1.ViewModels"
  8. x:DataType="vm:UpdateUsersViewModel">
  9. <StackPanel>
  10. <StackPanel>
  11. <Button Content="Назад" Command="{Binding Back}"/>
  12. </StackPanel>
  13. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  14. <TextBlock Text="Фамилия:" Margin="0 5"/>
  15. <TextBox Text="{Binding User.LastName}" Watermark=" Введите фамилию"/>
  16. <TextBlock Text="Имя:" Margin="0 5"/>
  17. <TextBox Text="{Binding User.FirstName}" Watermark="Введите имя"/>
  18. <TextBlock Text="Отчеcтво:" Margin="0 5"/>
  19. <TextBox Text="{Binding User.Patronymic}" Watermark="Введите отчество"/>
  20. <TextBlock Text="Пол: " Margin="0 5"/>
  21. <ComboBox ItemsSource="{Binding GenderList}" SelectedItem="{Binding SelectedGender}">
  22. <ComboBox.ItemTemplate>
  23. <DataTemplate>
  24. <TextBlock Text="{Binding Title}"/>
  25. </DataTemplate>
  26. </ComboBox.ItemTemplate>
  27. </ComboBox>
  28. <TextBlock Text="Введите дату рождения: " Margin="0 5"/>
  29. <DatePicker SelectedDate="{Binding DateTimeOffset}"/>
  30. <TextBlock Text="Логин" Margin="0 5"/>
  31. <TextBox Text="{Binding User.Login}" Watermark="Введите логин" Margin="0 5"/>
  32. <TextBlock Text="Пароль" Margin="0 5"/>
  33. <TextBox Text="{Binding User.Password}" Watermark="Введите пароль" PasswordChar="*" Margin="0 5"/>
  34. </StackPanel>
  35. </StackPanel>
  36. </UserControl>