123456789101112131415161718192021222324252627282930 |
- <UserControl xmlns="https://github.com/avaloniaui"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:vm="using:AvaloniaApplicationPersonalPage.ViewModels"
- 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:DataType="vm:MainWindowViewModel"
- x:Class="AvaloniaApplicationPersonalPage.Views.PersonalPage">
- <Grid>
- <StackPanel>
- <TextBlock>Имя:</TextBlock>
- <TextBox Text="{Binding PersonalPage.CurrentUser.UserTable.Name}"></TextBox>
- <TextBlock>Логин:</TextBlock>
- <TextBox Text="{Binding PersonalPage.CurrentUser.Login}"></TextBox>
- <CheckBox IsChecked="{Binding PersonalPage.IsPasswordChange}">Изменить пароль?</CheckBox>
- <StackPanel IsVisible="{Binding PersonalPage.IsPasswordChange}">
- <TextBlock>Введите пароль</TextBlock>
- <TextBox PasswordChar="*" Text="{Binding PersonalPage.CurrentUser.Password, Mode=OneWayToSource}"></TextBox>
- <TextBlock>Подтвердите пароль</TextBlock>
- <TextBox PasswordChar="*" Text="{Binding PersonalPage.RepeatPassword}"></TextBox>
- </StackPanel>
- <TextBlock>Дата:</TextBlock>
- <DatePicker SelectedDate="{Binding PersonalPage.DR}"></DatePicker>
- <TextBlock>Пол:</TextBlock>
- <ComboBox ItemsSource="{Binding PersonalPage.Genders}" SelectedItem="{Binding PersonalPage.SelectedGender}"></ComboBox>
- <Button Command="{Binding PersonalPage.SaveData}">Сохранить изменения</Button>
- <TextBlock Text="{Binding PersonalPage.Message}"></TextBlock>
- </StackPanel>
- </Grid>
- </UserControl>
|