PersonalCabinet.axaml 2.2 KB

1234567891011121314151617181920212223242526
  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="600"
  6. x:Class="pr13.PersonalCabinet"
  7. x:DataType="vm:MainWindowViewModel"
  8. xmlns:vm="using:pr13.ViewModels">
  9. <StackPanel HorizontalAlignment="Center" Width="550" VerticalAlignment="Center">
  10. <TextBlock FontWeight="Bold" HorizontalAlignment="Center" Text="Ваши данные"/>
  11. <TextBox Margin="0,10,0,0" Width="200" Watermark="Фамилия" Text="{Binding PPVM.UserData.Teacher.Surname}"/>
  12. <TextBox Margin="0,10,0,0" Width="200" Watermark="Имя" Text="{Binding PPVM.UserData.Teacher.Name}"/>
  13. <TextBox Margin="0,10,0,0" Width="200" Watermark="Отчество" Text="{Binding PPVM.UserData.Teacher.Patronymic}"/>
  14. <TextBox Margin="0,10,0,0" Width="200" Watermark="Логин" Text="{Binding PPVM.UserData.Login}"/>
  15. <ComboBox Margin="0,10,0,0" Width="200" HorizontalAlignment="Center" ItemsSource="{Binding PPVM.Genders}" SelectedItem="{Binding PPVM.SelectedGender}"/>
  16. <DatePicker Margin="0,10,0,0" HorizontalAlignment="Center" SelectedDate="{Binding PPVM.DR}"/>
  17. <TextBox Margin="0,10,0,0" Width="200" Watermark="Почта" Text="{Binding PPVM.UserData.Teacher.Email}"/>
  18. <TextBox Margin="0,10,0,0" Width="200" Watermark="89XXXXXXXXX" Text="{Binding PPVM.UserData.Teacher.Phone}"/>
  19. <CheckBox Command="{Binding PPVM.Checked}" HorizontalAlignment="Center" Content="Изменить пароль?"/>
  20. <TextBox Text="{Binding PPVM.NewPass}" Width="200" IsVisible="{Binding PPVM.Enable}" Watermark="Новый пароль" PasswordChar="*"/>
  21. <TextBox Text="{Binding PPVM.NewPassRepeat}" Width="200" IsVisible="{Binding PPVM.Enable}" Watermark="Повторите новый пароль" Margin="0,10,0,0" PasswordChar="*" />
  22. <Button Command="{Binding PPVM.FixChanges}" HorizontalAlignment="Center" Margin="0,10,0,0" Content="Изменить"/>
  23. </StackPanel>
  24. </UserControl>