123456789101112131415161718192021222324252627282930313233343536 |
- <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="1000" d:DesignHeight="990"
- xmlns:vm="using:AvaloniaApplication4.ViewModels"
- x:DataType="vm:AccountPageViewModel"
- x:Class="AvaloniaApplication4.Views.AccountPage"
- Background="White"
- Padding="80">
- <ScrollViewer>
- <StackPanel Orientation="Vertical" HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="0 20 0 0">
- <TextBlock Margin="0 0 0 40" Text="Личный кабинет" Classes="titleStyle" FontWeight="Bold"/>
- <TextBlock Margin="0 0 0 13" Text="Имя" Classes="litleText"/>
- <TextBox Text="{Binding UserLogin.IdUserNavigation.Name}" Margin="0 0 0 22" Watermark="Имя"/>
- <TextBlock Margin="0 0 0 13" Text="Фамилия" Classes="litleText"/>
- <TextBox Text="{Binding UserLogin.IdUserNavigation.Surname}" Margin="0 0 0 22" Watermark="Фамилия"/>
- <TextBlock Margin="0 0 0 13" Text="Отчество" Classes="litleText"/>
- <TextBox Text="{Binding UserLogin.IdUserNavigation.Patronumic}" Margin="0 0 0 22" Watermark="Отчество"/>
- <StackPanel Orientation="Horizontal" Margin="0 0 0 20">
- <CheckBox IsChecked="{Binding IsChange}" Height="36" Width="36" VerticalAlignment="Center"/>
- <TextBlock VerticalAlignment="Center" Margin="36 0 0 0" Text="Изменить пароль?" Classes="litleText"/>
- </StackPanel>
- <StackPanel IsVisible="{Binding IsChange}" Orientation="Vertical" Margin="0 0 0 15">
- <TextBlock Margin="0 0 0 13" Text="Логин" Classes="litleText"/>
- <TextBox Text="{Binding Login}" Margin="0 0 0 17" Watermark="Введите ваш логин"/>
- <TextBlock Margin="0 0 0 13" Text="Введите пароль" Classes="litleText"/>
- <TextBox Text="{Binding NewPassword}" Margin="0 0 0 22" Watermark="Введите новый пароль"/>
- <TextBlock Margin="0 0 0 13" Text="Повторите пароль" Classes="litleText"/>
- <TextBox Text="{Binding NewPasswordAgain}" Margin="0 0 0 17" Watermark="Повторите новый пароль"/>
- </StackPanel>
- <TextBlock FontWeight="Bold" Foreground="Red" Margin="0 0 0 10" Classes="litleText" Text="{Binding Message}"/>
- <Button Command="{Binding SaveChanges}" Content="Сохранить изменения" HorizontalAlignment="Stretch"/>
- </StackPanel>
- </ScrollViewer>
- </UserControl>
|