PersonalAccountPage.axaml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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="1440" d:DesignHeight="990"
  6. xmlns:vm="using:AvaloniaApplication3.ViewModels"
  7. x:DataType="vm:PersonalAccountViewModel"
  8. x:Class="AvaloniaApplication3.ViewModels.PersonalAccountPage">
  9. <StackPanel Margin="50" Orientation="Vertical">
  10. <TextBlock Classes="title" Text="Личный кабинет"/>
  11. <Grid>
  12. <Grid.ColumnDefinitions>
  13. <ColumnDefinition Width="1*"/>
  14. <ColumnDefinition Width="1*"/>
  15. </Grid.ColumnDefinitions>
  16. <StackPanel Orientation="Vertical" Grid.Column="0">
  17. <TextBlock Text="Имя"/>
  18. <TextBox Text="{Binding Name}" Watermark="Введите имя"/>
  19. <TextBlock Text="Фамилия"/>
  20. <TextBox Text="{Binding Surname}" Watermark="Введите фамилию"/>
  21. <TextBlock Text="Отчество"/>
  22. <TextBox Text="{Binding Patronumic}" Watermark="Введите отчество"/>
  23. </StackPanel>
  24. <StackPanel Orientation="Vertical" Grid.Column="1">
  25. <TextBlock Text="Логин"/>
  26. <TextBox Text="{Binding Login}" Watermark="Введите логин"/>
  27. <CheckBox Content="Изменить пароль?" IsChecked="{Binding IsChangedPass}"/>
  28. <StackPanel Orientation="Vertical" IsVisible="{Binding IsChangedPass}">
  29. <TextBlock Text="Введите новый пароль"/>
  30. <TextBox Text="{Binding NewPassword}" Watermark="Новый пароль" PasswordChar="•" Classes="revealPasswordButton"/>
  31. <TextBlock Text="Повторите новый пароль"/>
  32. <TextBox Text="{Binding NewPasswordAgain}" Watermark="Повторите пароль" PasswordChar="•" Classes="revealPasswordButton"/>
  33. </StackPanel>
  34. </StackPanel>
  35. </Grid>
  36. <TextBlock Text="{Binding Message}" Classes="error"/>
  37. <Button Classes="blueBtn" Content="Сохранить изменения" Command="{Binding SaveChanges}"/>
  38. </StackPanel>
  39. </UserControl>