Лабораторная работа "Создание WPF-приложения. Знакомство с компоновкой"
<Window x:Class="WpfApp1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
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"
xmlns:local="clr-namespace:WpfApp1"
Title="MainWindow" Height="450" Width="800">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<TextBlock
Text="Название лекарства"
Grid.Row="0"
Grid.Column="0"
Background="LightCyan"/>
<TextBlock
Text="Парацетомол"
Grid.Row="2"
Grid.Column="0"
Background="LightSeaGreen"/>
<TextBlock
Text="Цена"
Grid.Row="0"
Grid.Column="2"
Background="LightGray"/>
<TextBlock
Text="Количество"
Grid.Row="2"
Grid.Column="2"
Background="LightPink"/>
<GridSplitter
Grid.Column="1"
ShowsPreview="False"
Width="5"
HorizontalAlignment="Center"/>
<GridSplitter
Grid.Column="1"
Grid.Row="2"
ShowsPreview="False"
Width="5"
HorizontalAlignment="Center" Cursor="SizeWE"/>
</Grid>
</Window>

<Window x:Class="WpfApp1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
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"
xmlns:local="clr-namespace:WpfApp1"
Title="MainWindow" Height="450" Width="800">
<StackPanel Orientation="Vertical" HorizontalAlignment="Stretch">
<TextBlock Text="Название лекарства" HorizontalAlignment="Center"/>
<TextBlock Text="Парацетомол" HorizontalAlignment="Left"/>
<TextBlock Text="Цена" HorizontalAlignment="Right"/>
<TextBlock Text="Количество" HorizontalAlignment="Left"/>
<TextBlock Text="100" HorizontalAlignment="Right"/>
</StackPanel>
</Window>

<Window x:Class="WpfApp1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
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"
xmlns:local="clr-namespace:WpfApp1"
Title="MainWindow" Height="450" Width="800">
<WrapPanel>
<Button Content="Узнать цену" Width="100" Margin="10" Background="LightSkyBlue"/>
<Button Content="Узнать количество товара" Width="150" Margin="10" Background="LightPink"/>
<Button Content="Инструкция по применению" Width="165" Margin="10" Background="LightCyan"/>
</WrapPanel>
</Window>
