AccountPage.axaml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536
  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="1000" d:DesignHeight="990"
  6. xmlns:vm="using:AvaloniaApplication4.ViewModels"
  7. x:DataType="vm:AccountPageViewModel"
  8. x:Class="AvaloniaApplication4.Views.AccountPage"
  9. Background="White"
  10. Padding="80">
  11. <ScrollViewer>
  12. <StackPanel Orientation="Vertical" HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="0 20 0 0">
  13. <TextBlock Margin="0 0 0 40" Text="Личный кабинет" Classes="titleStyle" FontWeight="Bold"/>
  14. <TextBlock Margin="0 0 0 13" Text="Имя" Classes="litleText"/>
  15. <TextBox Text="{Binding UserLogin.IdUserNavigation.Name}" Margin="0 0 0 22" Watermark="Имя"/>
  16. <TextBlock Margin="0 0 0 13" Text="Фамилия" Classes="litleText"/>
  17. <TextBox Text="{Binding UserLogin.IdUserNavigation.Surname}" Margin="0 0 0 22" Watermark="Фамилия"/>
  18. <TextBlock Margin="0 0 0 13" Text="Отчество" Classes="litleText"/>
  19. <TextBox Text="{Binding UserLogin.IdUserNavigation.Patronumic}" Margin="0 0 0 22" Watermark="Отчество"/>
  20. <StackPanel Orientation="Horizontal" Margin="0 0 0 20">
  21. <CheckBox IsChecked="{Binding IsChange}" Height="36" Width="36" VerticalAlignment="Center"/>
  22. <TextBlock VerticalAlignment="Center" Margin="36 0 0 0" Text="Изменить пароль?" Classes="litleText"/>
  23. </StackPanel>
  24. <StackPanel IsVisible="{Binding IsChange}" Orientation="Vertical" Margin="0 0 0 15">
  25. <TextBlock Margin="0 0 0 13" Text="Логин" Classes="litleText"/>
  26. <TextBox Text="{Binding Login}" Margin="0 0 0 17" Watermark="Введите ваш логин"/>
  27. <TextBlock Margin="0 0 0 13" Text="Введите пароль" Classes="litleText"/>
  28. <TextBox Text="{Binding NewPassword}" Margin="0 0 0 22" Watermark="Введите новый пароль"/>
  29. <TextBlock Margin="0 0 0 13" Text="Повторите пароль" Classes="litleText"/>
  30. <TextBox Text="{Binding NewPasswordAgain}" Margin="0 0 0 17" Watermark="Повторите новый пароль"/>
  31. </StackPanel>
  32. <TextBlock FontWeight="Bold" Foreground="Red" Margin="0 0 0 10" Classes="litleText" Text="{Binding Message}"/>
  33. <Button Command="{Binding SaveChanges}" Content="Сохранить изменения" HorizontalAlignment="Stretch"/>
  34. </StackPanel>
  35. </ScrollViewer>
  36. </UserControl>