PersonalCabinetView.axaml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. xmlns:vm="clr-namespace:ApplicationAvalonia.ViewModels;assembly=ApplicationAvalonia"
  7. x:DataType="vm:PersonalCabinetViewModel"
  8. x:Class="ApplicationAvalonia.Views.PersonalCabinetView"
  9. >
  10. <StackPanel Spacing="20" VerticalAlignment="Center" HorizontalAlignment="Center">
  11. <TextBlock Text="Добро пожаловать в личный кабинет" FontSize="20"/>
  12. <TextBox Text="{Binding User.UserTable.UserName}" Watermark="Имя"/> <!--Имя-->
  13. <TextBox Text="{Binding User.UserTable.UserSurname}" Watermark="Фамилия"/> <!--Фамилия-->
  14. <TextBox Text="{Binding User.Login}" Watermark="Ваш новый логин"/> <!--Логин-->
  15. <TextBox Text="{Binding NewPaswword}" Watermark="Ваш новый пароль"/> <!--Пароль-->
  16. <StackPanel HorizontalAlignment="Center" Orientation="Horizontal"
  17. Spacing="20">
  18. <Button Content="Редактировать" Command="{Binding EditProfileCommand}"/>
  19. <Button Content="Назад" Command="{Binding GoBackCommand}"/>
  20. <Button Content="Выйти из профиля" Command="{Binding ExitCommand}"/>
  21. </StackPanel>
  22. </StackPanel>
  23. </UserControl>