generated from admin/template
Обновить works/lab-01/Readme.md
This commit is contained in:
+51
-8
@@ -7,12 +7,55 @@
|
|||||||
|
|
||||||
## Ключевой код
|
## Ключевой код
|
||||||
```csharp
|
```csharp
|
||||||
// Самая важная часть реализации (методы, структуры, логика)
|
<Grid Margin="20">
|
||||||
public class Card
|
<Grid.RowDefinitions>
|
||||||
{
|
<!-- Верхняя панель (Поиск, Сортировка, Фильтрация) -->
|
||||||
public string Name { get; set; }
|
<RowDefinition Height="Auto"/>
|
||||||
public int Hp { get; set; }
|
<!-- Список продуктов (оставлен пустым) -->
|
||||||
}
|
<RowDefinition Height="*"/>
|
||||||
https://docs.google.com/spreadsheets/d/1b_EvJJ_1azqPGqe-cU36nxNVGMFR4N9kVBrHDsByia8/edit?usp=drivesdk мдк01.03 котлин
|
<!-- Пагинация -->
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
https://docs.google.com/spreadsheets/d/1IWxGHy0X8WB01NxEkBJMKMPJQobZ6wGfo1cNh5Tquyc/edit?usp=drivesdk мдк01.01 шарпы
|
<!-- 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>
|
||||||
|
|||||||
Reference in New Issue
Block a user