Лабораторная работа 2

This commit is contained in:
IlyasValiulov 2024-09-20 01:46:03 +04:00
parent 29d8a4370b
commit f3327246a0
3 changed files with 49 additions and 17 deletions

View File

@ -5,22 +5,44 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WPF" xmlns:local="clr-namespace:WPF"
mc:Ignorable="d" mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800" MinHeight="450" MinWidth="600"> Title="MainWindow" Height="500" Width="800" MinHeight="450" MinWidth="600" Background="LightYellow">
<Grid>
<Grid ShowGridLines="True">
<Grid ShowGridLines="True"> <Grid.RowDefinitions>
<Grid.RowDefinitions> <RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="*"></RowDefinition> <RowDefinition Height="2*"></RowDefinition>
<RowDefinition Height="2*"></RowDefinition> <RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="*"></RowDefinition> <RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions> </Grid.RowDefinitions>
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition> <ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition> <ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition> <ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
</Grid>
<StackPanel Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Orientation="Vertical">
<CheckBox FontSize="16" Margin="10" Content=" Я согласен с пользовательским соглашением"/>
<CheckBox FontSize="16" Margin="10" Content="Я согласен на обработку данных"/>
</StackPanel>
<Button MinHeight="50" MinWidth="50" FontSize="18" Margin="20" Grid.Row="3" Grid.Column="1">Принять</Button>
<Button MinHeight="50" MinWidth="50" FontSize="18" Margin="20" Grid.Row="3" Grid.Column="2">Отмена</Button>
<Label Content="Установка" Grid.Row="0" Grid.Column="0" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<RichTextBox Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" Margin="20" FontSize="20">
<FlowDocument>
<Paragraph>
<Run>Путь установки: C:\Users\Ilyas\AppData\Local\hgv</Run>
</Paragraph>
<Paragraph>
<Run>Требуемого места: 148Т </Run>
</Paragraph>
</FlowDocument>
</RichTextBox>
<Image Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" Source="images/hgvstrgtavc.png" Stretch="Fill" Margin="0,10"/>
</Grid> </Grid>
</Window> </Window>

View File

@ -8,4 +8,14 @@
<UseWPF>true</UseWPF> <UseWPF>true</UseWPF>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<None Remove="images\hgvstrgtavc.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="images\hgvstrgtavc.png">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</Resource>
</ItemGroup>
</Project> </Project>

BIN
WPF/images/hgvstrgtavc.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB