1234567891011121314151617181920212223242526272829303132 |
- <UserControl xmlns="https://github.com/avaloniaui"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
- x:Class="AvaloniaApplication1.PersonalPage"
- x:DataType="vm:MainWindowViewModel"
- xmlns:vm="using:AvaloniaApplication1.ViewModels">
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
- <StackPanel HorizontalAlignment="Left" Width="350" Margin="10,10,0,0">
- <TextBlock FontWeight="Bold" Text="Информация о пользователе"/>
- <TextBox Margin="0,10,0,0" Watermark="Фамилия" Text="{Binding PPVM.UserData.Teacher.Surname}"/>
- <TextBox Margin="0,10,0,0" Watermark="Имя" Text="{Binding PPVM.UserData.Teacher.Name}"/>
- <TextBox Margin="0,10,0,0" Watermark="Отчество" Text="{Binding PPVM.UserData.Teacher.Patronymic}"/>
- <TextBox Margin="0,10,0,0" Watermark="Логин" Text="{Binding PPVM.UserData.Login}"/>
- <ComboBox Margin="0,10,0,0" Width="150" ItemsSource="{Binding PPVM.Genders}" SelectedItem="{Binding PPVM.SelectedGender}"/>
- <DatePicker Margin="0,10,0,0" SelectedDate="{Binding PPVM.DR}"/>
- <TextBox Margin="0,10,0,0" Watermark="Емайл" Text="{Binding PPVM.UserData.Teacher.Email}"/>
- <TextBox Margin="0,10,0,0" Watermark="89XXXXXXXXX" Text="{Binding PPVM.UserData.Teacher.Phone}"/>
- <Button Command="{Binding PPVM.FixChanges}" HorizontalAlignment="Center" Margin="0,30,0,0" Content="Изменить данные"/>
- </StackPanel>
-
- <StackPanel Margin="30,0,0,0" HorizontalAlignment="Right">
- <CheckBox Command="{Binding PPVM.Checked}" Content="Изменить пароль?"/>
- <TextBox Text="{Binding PPVM.NewPass}" IsVisible="{Binding PPVM.Enable}" Watermark="Новый пароль" Margin="0,10,0,0" PasswordChar="♫"/>
- <TextBox Text="{Binding PPVM.NewPassRepeat}" IsVisible="{Binding PPVM.Enable}" Watermark="Новый пароль ещё раз" Margin="0,10,0,0" PasswordChar="♫" />
- </StackPanel>
-
- </StackPanel>
- </UserControl>
|