generated from admin/template
62 lines
2.3 KiB
Markdown
62 lines
2.3 KiB
Markdown
# Лабораторная работа №1
|
|
|
|
* **Студент:** [ФИО]
|
|
* **Вариант / Карточка:** [Например: #025 Pikachu]
|
|
|
|
---
|
|
|
|
## Ключевой код
|
|
```csharp
|
|
<Grid Margin="20">
|
|
<Grid.RowDefinitions>
|
|
<!-- Верхняя панель (Поиск, Сортировка, Фильтрация) -->
|
|
<RowDefinition Height="Auto"/>
|
|
<!-- Список продуктов (оставлен пустым) -->
|
|
<RowDefinition Height="*"/>
|
|
<!-- Пагинация -->
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- 1. Верхняя панель управления -->
|
|
<Grid Grid.Row="0" Margin="0,0,0,15">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBox Grid.Column="0"
|
|
PlaceholderText="Введите для поиска"
|
|
Margin="0,0,10,0"/>
|
|
|
|
<ComboBox Grid.Column="1"
|
|
PlaceholderText="Сортировка"
|
|
Width="150"
|
|
Margin="0,0,10,0"/>
|
|
|
|
<ComboBox Grid.Column="2"
|
|
PlaceholderText="Фильтрация"
|
|
Width="150"/>
|
|
</Grid>
|
|
|
|
<!-- 2. Список продуктов (пустой) -->
|
|
<ListView Grid.Row="1" x:Name="ProductsListView">
|
|
<ListView.ItemContainerStyle>
|
|
<Style TargetType="ListViewItem">
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
|
<Setter Property="Margin" Value="0,0,0,10"/>
|
|
</Style>
|
|
</ListView.ItemContainerStyle>
|
|
</ListView>
|
|
|
|
<!-- 3. Панель пагинации (снизу справа) -->
|
|
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,10,0,0" Spacing="8">
|
|
<Button Content="<" Width="30" Height="30"/>
|
|
<Button Content="1" Width="30" Height="30" Background="#007ACC" Foreground="White"/>
|
|
<Button Content="2" Width="30" Height="30"/>
|
|
<Button Content="3" Width="30" Height="30"/>
|
|
<Button Content="4" Width="30" Height="30"/>
|
|
<Button Content=">" Width="30" Height="30"/>
|
|
</StackPanel>
|
|
</Grid>
|