123456789101112131415161718192021222324252627282930313233343536373839 |
- <UserControl xmlns="https://github.com/avaloniaui"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:vm="using:AvaloniaApplicationBase.ViewModels"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- x:DataType="vm:MainWindowViewModel"
- mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
- x:Class="AvaloniaApplicationBase.Views.ShowCatsPage">
-
- <Grid RowDefinitions="*,6*">
- <StackPanel>
- <Button Grid.Row="0" Command="{Binding NewCatPage}">Добавить кота</Button>
- <StackPanel Orientation="Horizontal">
- <TextBlock>сортировка по имени</TextBlock>
- <ComboBox ItemsSource="{Binding ShowCatsVM.OrdersName}" SelectedValue="{Binding ShowCatsVM.OrderByName}"></ComboBox>
- <TextBlock>Фильтр по полу</TextBlock>
- <ComboBox ItemsSource="{Binding ShowCatsVM.GenderList}" SelectedValue="{Binding ShowCatsVM.SelectedGender}"></ComboBox>
- <TextBlock>Поиск по имени</TextBlock>
- <TextBox Text="{Binding ShowCatsVM.NameFind}"></TextBox>
- </StackPanel>
- </StackPanel>
-
- <ListBox ItemsSource="{Binding ShowCatsVM.CT}" Grid.Row="1">
- <ListBox.ItemTemplate>
- <DataTemplate>
- <Border CornerRadius="5" BorderBrush="Violet" BorderThickness="2" Padding="15">
- <StackPanel>
- <TextBlock Text="{Binding Name}"></TextBlock>
- <TextBlock Text="{Binding Date}"></TextBlock>
- <TextBlock Text="{Binding GenderNavigation.Gender}"></TextBlock>
- <TextBlock Text="{Binding TraitsCats}"></TextBlock>
- </StackPanel>
- </Border>
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
- </Grid>
- </UserControl>
|