123456789101112131415161718192021222324 |
- <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"
- x:Class="AvaloniaApplication2.Page2"
- xmlns:vm="using:AvaloniaApplication2.ViewModels"
- x:DataType="vm:MainWindowViewModel">
- <StackPanel>
- <TextBox Text="{Binding Page2VM.EditedUser.Name}"/>
- <TextBox Text="{Binding Page2VM.EditedUser.BirthDate}"/>
- <DatePicker SelectedDate="{Binding Page2VM.DateTimeOffset}"/>
- <ComboBox ItemsSource="{Binding Page2VM.GendersList}" SelectedItem="{Binding Page2VM.EditedUser.IdGenderNavigation}">
- <ComboBox.ItemTemplate>
- <DataTemplate>
- <TextBlock Text="{Binding Gender1}"/>
- </DataTemplate>
- </ComboBox.ItemTemplate>
- </ComboBox>
- <Button Content="Сохранить изменения" Command="{Binding Page2VM.Save}"/>
- <Button Content="Развойти обратно" Command="{Binding Page2VM.GoBack}"/>
- </StackPanel>
-
- </UserControl>
|