AddCatPage.axaml 1.4 KB

1234567891011121314151617181920212223242526
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  4. xmlns:vm="using:AvaloniaApplicationBase.ViewModels"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  7. x:DataType="vm:MainWindowViewModel"
  8. x:Class="AvaloniaApplicationBase.Views.AddCatPage">
  9. <Grid>
  10. <StackPanel>
  11. <TextBlock>Введите имя кота</TextBlock>
  12. <TextBox Text="{Binding AddCatVM.Name}"></TextBox>
  13. <TextBlock>Выберите дату рождения</TextBlock>
  14. <DatePicker SelectedDate="{Binding AddCatVM.Date}"></DatePicker>
  15. <TextBlock>Выберите пол</TextBlock>
  16. <ComboBox SelectedIndex="{Binding AddCatVM.Gender}">
  17. <ComboBoxItem>Мужской</ComboBoxItem>
  18. <ComboBoxItem>Женский</ComboBoxItem>
  19. </ComboBox>
  20. <TextBlock>Выберите черты характера кота</TextBlock>
  21. <ListBox ItemsSource="{Binding AddCatVM.SelectedTraits}"></ListBox>
  22. <ComboBox ItemsSource="{Binding AddCatVM.NewTraits}" SelectedValue="{Binding AddCatVM.SelectedTraitCat}"></ComboBox>
  23. <Button Command="{Binding AddCatVM.addNewCat}">Добавить кота</Button>
  24. </StackPanel>
  25. </Grid>
  26. </UserControl>