DemoService/ServiceWindow.axaml

66 lines
2.0 KiB
Plaintext
Raw Normal View History

2024-09-04 09:08:53 +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"
2024-09-05 13:11:39 +00:00
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="600"
2024-09-04 09:08:53 +00:00
x:Class="DemoService.ServiceWindow"
2024-09-05 13:11:39 +00:00
x:CompileBindings="False"
2024-09-04 10:47:26 +00:00
Title="Сервис «Подай на 16»">
<StackPanel Orientation="Vertical">
<Grid RowDefinitions="Auto"
ColumnDefinitions="* Auto Auto">
<TextBox Grid.Column="0"
Watermark="Поиск"/>
2024-09-05 13:11:39 +00:00
<ComboBox Grid.Column="1"
SelectedIndex="0">
2024-09-04 10:47:26 +00:00
<ComboBoxItem>Сортировка</ComboBoxItem>
</ComboBox>
2024-09-05 13:11:39 +00:00
<ComboBox Grid.Column="2"
SelectedIndex="0">
2024-09-04 10:47:26 +00:00
<ComboBoxItem>Фильтрация</ComboBoxItem>
</ComboBox>
</Grid>
2024-09-05 13:11:39 +00:00
<Button Name="AddButton">
Добавить
</Button>
<ScrollViewer>
<ListBox Name="ServicesListBox">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<Image/>
<StackPanel Orientation="Vertical">
<TextBlock Name="ServiceName"
Text="{Binding Title}"/>
<TextBlock>
<Run Name="PreviousCost"/>
<Run Name="ActualCost"
Text="{Binding Cost}"/>
<Run Text="рублей за"/>
<Run Name="Time"
Text="{Binding DurationInSeconds}"/>
<Run Text="минут"/>
</TextBlock>
<TextBlock>
<Run Text="* скидка"/>
<Run Name="Discount"
Text="{Binding Discount}"/>
</TextBlock>
<StackPanel Name="AdminServicePanel"
Orientation="Horizontal">
<Button Name="EditButton">
Изменить
</Button>
<Button Name="DeleteButton">
Удалить
</Button>
</StackPanel>
</StackPanel>
2024-09-04 10:47:26 +00:00
</StackPanel>
2024-09-05 13:11:39 +00:00
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</ScrollViewer>
2024-09-04 10:47:26 +00:00
</StackPanel>
2024-09-04 09:08:53 +00:00
</Window>