1234567891011121314151617181920212223242526272829303132333435 |
- <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:AvaloniaExample.ViewModels"
- x:DataType="vm:MainWindowViewModel"
- x:Class="AvaloniaExample.Views.Page3">
- <UserControl.Styles>
- <Style Selector="TextBox.prettyBlock">
- <Setter Property="Width" Value="390"/>
- <Setter Property="HorizontalAlignment" Value="Left"/>
- </Style>
- <Style Selector="TextBlock.prettyText">
- <Setter Property="FontWeight" Value="Bold"/>
- <Setter Property="Margin" Value="0 5"/>
- </Style>
- </UserControl.Styles>
- <StackPanel>
- <TextBlock Classes="prettyText" Text="Личный кабинет пользователя"/>
- <TextBlock Classes="prettyText" Text="Имя"/>
- <TextBox Classes="prettyBlock" Text="{Binding Page3VM.UserInf.UsersInfo.Name}"/>
- <TextBlock Classes="prettyText" Text="Пол" />
- <ComboBox ItemsSource="{Binding Page3VM.GenderList}" SelectedItem="{Binding Page3VM.UserInf.UsersInfo.Gender}"/>
- <TextBlock Classes="prettyText" Text="Дата рождения"/>
- <DatePicker SelectedDate="{Binding Page3VM.DateBirth}"/>
- <TextBlock Classes="prettyText" Text="Почта"/>
- <TextBox Classes="prettyBlock" Text="{Binding Page3VM.UserInf.UsersInfo.Mail}"/>
- <TextBlock Classes="prettyText" Text="Номер телефона"/>
- <TextBox Classes="prettyBlock" Text="{Binding Page3VM.UserInf.UsersInfo.Phone}" />
- <TextBlock Classes="prettyText" Text="Роль в системе"/>
- <TextBox Classes="prettyBlock" Text="{Binding Page3VM.UserInf.Role}" IsEnabled="False"/>
- <Button Classes="prettyBlock" Content="Сохранить изменения" Command="{Binding SaveChanges}"/>
- </StackPanel>
- </UserControl>
|