Fix task-20.11 folder

This commit is contained in:
328p
2026-11-20 15:41:46 +03:00
parent c82286f90c
commit 7aa7e6b2b1
17 changed files with 396 additions and 1 deletions
+41
View File
@@ -0,0 +1,41 @@
<Window 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:model ="clr-namespace:DemoCats"
x:Class="DemoCats.UsersWindow"
Title="UsersWindow">
<Grid RowDefinitions="Auto, *, Auto">
<StackPanel Orientation="Horizontal">
<TextBox TextChanged="SearchBox_OnTextChanged" Width="300" Name="SearchBox"/>
<ComboBox SelectionChanged="FilterBox_OnSelectionChanged" Width="200" Name="FilterBox">
<ComboBoxItem>Без фильтрации</ComboBoxItem>
<ComboBoxItem>.com</ComboBoxItem>
<ComboBoxItem>.ru</ComboBoxItem>
<ComboBoxItem>.net</ComboBoxItem>
<ComboBoxItem>.org</ComboBoxItem>
</ComboBox>
<ComboBox SelectionChanged="SortBox_OnSelectionChanged" Width="200" Name="SortBox">
<ComboBoxItem>Без сортировки</ComboBoxItem>
<ComboBoxItem>По убыванию</ComboBoxItem>
<ComboBoxItem>По возрастанию</ComboBoxItem>
</ComboBox>
</StackPanel>
<ListBox Name="UserListBox" Grid.Row="1">
<ListBox.ItemTemplate>
<DataTemplate DataType="model:User">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Id}"/>
<StackPanel>
<TextBlock Text="{Binding Name}"/>
<TextBlock Text="{Binding Email}"/>
<TextBlock Text="{Binding Password}"/>
</StackPanel>
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<TextBlock Grid.Row="2" Name="UserProfile"/>
</Grid>
</Window>