sample_demo/ServiceApp/ServiceWindow.axaml

63 lines
1.9 KiB
Plaintext
Raw Permalink Normal View History

<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:CompileBindings="False"
x:Class="ServiceApp.ServiceWindow"
Title="ServiceWindow">
<DockPanel>
<Border
DockPanel.Dock="Top"
Name="SearchPanel">
<StackPanel
HorizontalAlignment="Center"
Orientation="Horizontal"
Spacing="20">
<TextBox
Name="SearchTextBox"
Width="200"
TextChanged="SearchTextBox_TextChanged"
/>
<ComboBox
Width="150"
Name="SortingComboBox"
SelectionChanged="SortingComboBox_SelectionChanged"/>
<ComboBox
Width="150"
SelectionChanged="FilteringComboBox_SelectionChanged"
Name="FilteringComboBox"/>
</StackPanel>
</Border>
<Border
DockPanel.Dock="Bottom"
Name="StatisticPanel">
<StackPanel
HorizontalAlignment="Center"
Orientation="Horizontal"
>
<TextBlock Name="StatisticTextBlock">Статистика</TextBlock>
</StackPanel>
</Border>
<Border Name="MainPanel">
<ListBox Name="ServiceListBox">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" Spacing="20">
<Image Source="{Binding ServiceImage}" Width="100" Height="100"/>
<StackPanel Orientation="Vertical">
<TextBlock Text="{Binding ServiceName}"/>
<StackPanel Orientation="Horizontal" Spacing="5">
<TextBlock Text="{Binding OldCost}" TextDecorations="Strikethrough"/>
<TextBlock Text="{Binding SeviceCostPerSeconds}" />
</StackPanel>
<TextBlock Text="{Binding ServiceDiscount}"/>
</StackPanel>
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Border>
</DockPanel>
</Window>