1234567891011121314151617181920212223242526272829303132333435363738 |
- <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"
- xmlns:vm="using:AvaloniaApplication5.ViewModels"
- x:DataType="vm:MainWindowViewModel"
- x:Class="AvaloniaApplication5.Views.PageUserCabinet">
- <StackPanel>
- <TextBlock Text="Имя"/>
- <TextBox Text="{Binding PageUCabinetVM.CurrentUser.User.Name}"/>
- <TextBlock Text="Логин"/>
- <TextBox Text="{Binding PageUCabinetVM.CurrentUser.Login}"/>
- <CheckBox Content="Изменить пароль" IsChecked="{Binding PageUCabinetVM.ChangePass}" IsEnabled="{Binding !PageUCabinetVM.ChangePass}"/>
- <StackPanel IsVisible="{Binding PageUCabinetVM.ChangePass}">
- <TextBlock Text="Введите новый пароль"/>
- <TextBox Text="{Binding PageUCabinetVM.CurrentUser.Password,Mode=OneWayToSource}" PasswordChar="•"/>
- <TextBlock Text="Повторите пароль"/>
- <TextBox Text="{Binding PageUCabinetVM.PasswordMatch}" PasswordChar="•"/>
- </StackPanel>
- <TextBlock Text="Роль в системе"/>
- <TextBlock Text="{Binding PageUCabinetVM.CurrentUser.IdRoleNavigation.Role1}"/>
- <TextBlock Text="Пол"/>
- <ComboBox ItemsSource="{Binding PageUCabinetVM.Genders}" SelectedValue="{Binding PageUCabinetVM.CurrentUser.User.IdGenderNavigation}">
- <ComboBox.ItemTemplate>
- <DataTemplate>
- <TextBlock Text="{Binding Gender1}"/>
- </DataTemplate>
- </ComboBox.ItemTemplate>
- </ComboBox>
-
- <TextBlock Text="Дата рождения"/>
- <DatePicker SelectedDate="{Binding PageUCabinetVM.DR}"/>
- <TextBlock Text="{Binding PageUCabinetVM.Message}"/>
- <Button Content="Сохранить изменения" Command="{Binding PageUCabinetVM.SaveData}"/>
- <Button Content="К списку пользователей" />
- </StackPanel>
- </UserControl>
|