41 lines
1.6 KiB
XML
41 lines
1.6 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
x:Class="Demka_2.Views.MainWindow"
|
||
Width="800" Height="600"
|
||
Title="Список услуг">
|
||
<DockPanel>
|
||
<StackPanel Orientation="Horizontal" DockPanel.Dock="Top" Margin="5">
|
||
<TextBox Width="200" Watermark="Поиск..." Name="SearchBox" />
|
||
<ComboBox Width="150" Name="DiscountFilter">
|
||
<ComboBox.Items>
|
||
<TextBlock Text="Все" />
|
||
<TextBlock Text="0-5%" />
|
||
<TextBlock Text="5-15%" />
|
||
<TextBlock Text="15-30%" />
|
||
<TextBlock Text="30-70%" />
|
||
<TextBlock Text="70-100%" />
|
||
</ComboBox.Items>
|
||
</ComboBox>
|
||
<Button Content="Сортировка ↑" Name="SortAscButton" Margin="5" />
|
||
<Button Content="Сортировка ↓" Name="SortDescButton" />
|
||
</StackPanel>
|
||
|
||
<ListBox Name="ServiceList" Margin="5">
|
||
<ListBox.ItemTemplate>
|
||
<DataTemplate>
|
||
<StackPanel Orientation="Vertical" Background="{Binding BackgroundColor}" Margin="5">
|
||
<TextBlock Text="{Binding Name}" FontWeight="Bold" />
|
||
<TextBlock Text="{Binding Description}" FontStyle="Italic" />
|
||
<StackPanel Orientation="Horizontal">
|
||
<TextBlock Text="{Binding Price}" TextDecorations="Strikethrough" />
|
||
<TextBlock Text="{Binding FinalPrice}" Foreground="Green" Margin="10,0,0,0" />
|
||
</StackPanel>
|
||
<Image Source="{Binding ImagePath}" Height="50" Width="50" Margin="5" />
|
||
</StackPanel>
|
||
</DataTemplate>
|
||
</ListBox.ItemTemplate>
|
||
</ListBox>
|
||
|
||
<TextBlock Name="ServiceCountText" DockPanel.Dock="Bottom" Margin="5" HorizontalAlignment="Center" />
|
||
</DockPanel>
|
||
</Window> |