42 lines
2.1 KiB
XML
42 lines
2.1 KiB
XML
<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>
|
|
// окно после входa |