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