No Description

ivasileva 4d07563bf1 Обновить 'readme.md' 1 month ago
SKV d55853a9dd las 2 months ago
.gitignore 8bec91e3fe chv 2 months ago
readme.md 4d07563bf1 Обновить 'readme.md' 1 month ago
изображение_2025-03-12_102509806.png 5b6bbce745 Загрузить файлы '' 1 month ago
изображение_2025-03-12_103016343.png f6cd9f9f64 Загрузить файлы '' 1 month ago
изображение_2025-03-12_103547216.png 0cea122566 Загрузить файлы '' 1 month ago

readme.md

Лабораторная работа "Создание 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>