Лабораторная работа №2
This commit is contained in:
parent
7508d9d863
commit
51e5fb74f8
@ -5,20 +5,74 @@
|
|||||||
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="500" Width="800" MinHeight="500" MinWidth="800">
|
Title="MainWindow" Height="800" Width="1000" MinHeight="800" MinWidth="1000">
|
||||||
<Grid ShowGridLines="True">
|
<Grid Margin="10">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
<RowDefinition Height="7*"/>
|
<RowDefinition Height="7*"/>
|
||||||
<RowDefinition Height="2*"/>
|
<RowDefinition Height="2*"/>
|
||||||
|
<RowDefinition Height="2*"/>
|
||||||
<RowDefinition Height="7*"/>
|
<RowDefinition Height="7*"/>
|
||||||
<RowDefinition Height="2*"/>
|
<RowDefinition Height="2*"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="3*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="3*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="4*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="4*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Viewbox Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="4" HorizontalAlignment="Center">
|
||||||
|
<TextBlock Text="Список популярных фильмов 2024" FontSize="16" />
|
||||||
|
</Viewbox>
|
||||||
|
|
||||||
|
<Button x:Name="pictureFilm_button1" Grid.Column="0" Grid.Row="1" Background="White" Margin="5,5,5,5">
|
||||||
|
<Image x:Name="margarita" Source="Resources/Ice3.jpg"/>
|
||||||
|
</Button>
|
||||||
|
<Button x:Name="btnAboutFilm1" Grid.Column="0" Grid.Row="2" Content="О фильме" Margin="5,0,5,0" Background="Orange" FontSize="14" />
|
||||||
|
|
||||||
|
<Button x:Name="pictureFilm_button2" Grid.Column="1" Grid.Row="1" Background="White" Margin="5,5,5,5">
|
||||||
|
<Image x:Name="meat" Source="Resources/Dune2.jpg"/>
|
||||||
|
</Button>
|
||||||
|
<Button x:Name="btnAboutFilm2" Grid.Column="1" Grid.Row="2" Content="О фильме" Margin="5,0,5,0" Background="Orange" FontSize="14" />
|
||||||
|
|
||||||
|
<Button x:Name="pictureFilm_button3" Grid.Column="2" Grid.Row="1" Background="White" Margin="5,5,5,5">
|
||||||
|
<Image x:Name="pepperoni" Source="Resources/Twisters2.jpg"/>
|
||||||
|
</Button>
|
||||||
|
<Button x:Name="btnAboutFilm3" Grid.Column="2" Grid.Row="2" Content="О фильме" Margin="5,0,5,0" Background="Orange" FontSize="14" />
|
||||||
|
|
||||||
|
<Button x:Name="pictureFilm_button4" Grid.Column="3" Grid.Row="1" Background="White" Margin="5,5,5,5">
|
||||||
|
<Image x:Name="tomat" Source="Resources/Deadpool3.jpg"/>
|
||||||
|
</Button>
|
||||||
|
<Button x:Name="btnAboutFilm4" Grid.Column="3" Grid.Row="2" Content="О фильме" Margin="5,0,5,0" Background="Orange" FontSize="14" />
|
||||||
|
|
||||||
|
<Viewbox Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Center">
|
||||||
|
<TextBlock Text="Смерч 2 (Трейлер)" HorizontalAlignment="Center" VerticalAlignment="Top" FontSize="14"/>
|
||||||
|
</Viewbox>
|
||||||
|
|
||||||
|
<Viewbox Grid.Row="3" Grid.Column="2" Grid.ColumnSpan="2" HorizontalAlignment="Center">
|
||||||
|
<TextBlock Text="Топ 9 фильмов за все время" HorizontalAlignment="Center" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" Margin="8,5,8,5"/>
|
||||||
|
</Viewbox>
|
||||||
|
|
||||||
|
<StackPanel Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2">
|
||||||
|
<Slider Name="vol" Maximum="1" MinHeight="23" MinWidth="100" Value="1" LargeChange="0.1" SmallChange="0.01" />
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
<Viewbox Grid.Row="4" Grid.Column="2" HorizontalAlignment="Center" Grid.ColumnSpan="2">
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock Text="1. 1+1" FontSize="14" TextWrapping="Wrap"/>
|
||||||
|
<TextBlock Text="2. Интерстеллар" FontSize="14" TextWrapping="Wrap"/>
|
||||||
|
<TextBlock Text="3. Побег из Шоушенка" FontSize="14" TextWrapping="Wrap"/>
|
||||||
|
<TextBlock Text="4. Зеленая миля" FontSize="14" TextWrapping="Wrap"/>
|
||||||
|
<TextBlock Text="5. Бойцовский клуб" FontSize="14" TextWrapping="Wrap"/>
|
||||||
|
<TextBlock Text="6. Остров проклятых" FontSize="14" TextWrapping="Wrap"/>
|
||||||
|
<TextBlock Text="7. Форрест Гамп" FontSize="14" TextWrapping="Wrap"/>
|
||||||
|
<TextBlock Text="8. Унесённые призраками" FontSize="14" TextWrapping="Wrap"/>
|
||||||
|
<TextBlock Text="9. Властелин колец" FontSize="14" TextWrapping="Wrap"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Viewbox>
|
||||||
|
|
||||||
|
<Button x:Name="btnPlay" Grid.Column="0" Grid.Row="5" Content="Старт" Margin="5,0,5,3" Background="Green" />
|
||||||
|
<Button x:Name="btnStop" Grid.Column="1" Grid.Row="5" Content="Пауза" Margin="5,0,5,3" Background="Red" />
|
||||||
</Grid>
|
</Grid>
|
||||||
</Window>
|
</Window>
|
||||||
|
BIN
WPF/WPF/Resources/Deadpool3.jpg
Normal file
BIN
WPF/WPF/Resources/Deadpool3.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
BIN
WPF/WPF/Resources/Dune2.jpg
Normal file
BIN
WPF/WPF/Resources/Dune2.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 695 KiB |
BIN
WPF/WPF/Resources/Ice3.jpg
Normal file
BIN
WPF/WPF/Resources/Ice3.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 45 KiB |
BIN
WPF/WPF/Resources/Twisters2.jpg
Normal file
BIN
WPF/WPF/Resources/Twisters2.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
@ -94,5 +94,13 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="App.config" />
|
<None Include="App.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\Dune2.jpg" />
|
||||||
|
<Resource Include="Resources\Ice3.jpg" />
|
||||||
|
<Resource Include="Resources\Twisters2.jpg" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\Deadpool3.jpg" />
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
Loading…
Reference in New Issue
Block a user