PersonalPage.axaml 2.2 KB

1234567891011121314151617181920212223242526272829303132
  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.PersonalPage"
  7. x:DataType="vm:MainWindowViewModel"
  8. xmlns:vm="using:AvaloniaApplication1.ViewModels">
  9. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  10. <StackPanel HorizontalAlignment="Left" Width="350" Margin="10,10,0,0">
  11. <TextBlock FontWeight="Bold" Text="Информация о пользователе"/>
  12. <TextBox Margin="0,10,0,0" Watermark="Фамилия" Text="{Binding PPVM.UserData.Teacher.Surname}"/>
  13. <TextBox Margin="0,10,0,0" Watermark="Имя" Text="{Binding PPVM.UserData.Teacher.Name}"/>
  14. <TextBox Margin="0,10,0,0" Watermark="Отчество" Text="{Binding PPVM.UserData.Teacher.Patronymic}"/>
  15. <TextBox Margin="0,10,0,0" Watermark="Логин" Text="{Binding PPVM.UserData.Login}"/>
  16. <ComboBox Margin="0,10,0,0" Width="150" ItemsSource="{Binding PPVM.Genders}" SelectedItem="{Binding PPVM.SelectedGender}"/>
  17. <DatePicker Margin="0,10,0,0" SelectedDate="{Binding PPVM.DR}"/>
  18. <TextBox Margin="0,10,0,0" Watermark="Емайл" Text="{Binding PPVM.UserData.Teacher.Email}"/>
  19. <TextBox Margin="0,10,0,0" Watermark="89XXXXXXXXX" Text="{Binding PPVM.UserData.Teacher.Phone}"/>
  20. <Button Command="{Binding PPVM.FixChanges}" HorizontalAlignment="Center" Margin="0,30,0,0" Content="Изменить данные"/>
  21. </StackPanel>
  22. <StackPanel Margin="30,0,0,0" HorizontalAlignment="Right">
  23. <CheckBox Command="{Binding PPVM.Checked}" Content="Изменить пароль?"/>
  24. <TextBox Text="{Binding PPVM.NewPass}" IsVisible="{Binding PPVM.Enable}" Watermark="Новый пароль" Margin="0,10,0,0" PasswordChar="♫"/>
  25. <TextBox Text="{Binding PPVM.NewPassRepeat}" IsVisible="{Binding PPVM.Enable}" Watermark="Новый пароль ещё раз" Margin="0,10,0,0" PasswordChar="♫" />
  26. </StackPanel>
  27. </StackPanel>
  28. </UserControl>