Demo/Demo3/Catalog.axaml

70 lines
2.2 KiB
Plaintext
Raw Normal View History

2024-12-27 10:32:41 +00:00
<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"
x:Class="Demo3.Catalog"
x:CompileBindings="False"
Title="Catalog">
<DockPanel>
<StackPanel Spacing="10" Orientation="Horizontal"
HorizontalAlignment="Center"
DockPanel.Dock="Top"
Background="White">
<StackPanel Spacing="10" Orientation="Horizontal"
Background="AliceBlue">
<StackPanel Margin="0,5,0,0" Orientation="Vertical">
<TextBlock HorizontalAlignment="Center"
Text="Фильтр по скидкам"/>
<StackPanel Orientation="Horizontal">
<RadioButton Content="0-9.99%">
</RadioButton>
<RadioButton Content="10-14.99%">
</RadioButton>
<RadioButton Content="15% и более">
</RadioButton>
</StackPanel>
</StackPanel>
</StackPanel>
<StackPanel Margin="30,0,0,0" Orientation="Horizontal">
<TextBox VerticalAlignment="Center" Width="250"></TextBox>
</StackPanel>
<StackPanel Orientation="Vertical" Margin="25,0,10,0">
<TextBlock Margin="0,5,0,0"
HorizontalAlignment="Center"
Text="Сортировка товаров"/>
<ComboBox Margin="0,5,0,0" HorizontalAlignment="Center" />
</StackPanel>
</StackPanel>
<StackPanel Background="Crimson">
<ListBox x:Name="ProductList">
<ListBox.ItemTemplate>
<DataTemplate>
<Border BorderBrush="Gray"
BorderThickness="1"
Padding="5">
<StackPanel HorizontalAlignment="Center">
<Image Width="100"
Height="100"
/>
<TextBlock Text="{Binding Productname}"
TextAlignment="Center"
TextWrapping="Wrap"/>
<TextBlock Text="{Binding Productcost}"
TextAlignment="Center"
TextWrapping="Wrap"/>
<TextBlock TextAlignment="Center"
TextWrapping="Wrap"/>
</StackPanel>
</Border>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</StackPanel>
</DockPanel>
</Window>