Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
e59a00648f | |||
58146ac23a | |||
a7a32b4529 | |||
c19fa91c12 | |||
f17cb84c47 | |||
542ebb0bd7 | |||
74c119d865 | |||
d73e07a6a1 | |||
5e85a53275 | |||
ee85197a50 |
BIN
Lectures Presentation.pptx
Normal file
BIN
Lectures Presentation.pptx
Normal file
Binary file not shown.
@ -5,8 +5,119 @@
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:TSChMI"
|
||||
mc:Ignorable="d"
|
||||
Title="MainWindow" Height="450" Width="800">
|
||||
<Grid>
|
||||
Title="Барышев Дмитрий ПИбд-23" MinHeight="400" MinWidth="600" MaxHeight="400" MaxWidth="600">
|
||||
|
||||
<Window.Resources>
|
||||
|
||||
<SolidColorBrush x:Key="BorderButtonColor" Color="#7F00FF"/>
|
||||
|
||||
|
||||
<Style TargetType="Button">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="Button">
|
||||
<Border BorderBrush="{StaticResource BorderButtonColor}" BorderThickness="2" CornerRadius="5">
|
||||
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
|
||||
<Style.Triggers>
|
||||
|
||||
<!-- Animates the button's opacity on mouse over. -->
|
||||
<EventTrigger RoutedEvent="Button.MouseEnter">
|
||||
<EventTrigger.Actions>
|
||||
<BeginStoryboard>
|
||||
<Storyboard>
|
||||
<DoubleAnimation
|
||||
Storyboard.TargetProperty="(Button.Opacity)"
|
||||
From="1.0" To="0.5" Duration="0:0:0.5" AutoReverse="True"
|
||||
RepeatBehavior="Forever" />
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
</EventTrigger.Actions>
|
||||
</EventTrigger>
|
||||
|
||||
<EventTrigger RoutedEvent="Button.MouseLeave">
|
||||
<EventTrigger.Actions>
|
||||
<BeginStoryboard>
|
||||
<Storyboard>
|
||||
<DoubleAnimation
|
||||
Storyboard.TargetProperty="(Button.Opacity)"
|
||||
To="1" Duration="0:0:0.1" />
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
</EventTrigger.Actions>
|
||||
</EventTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<Storyboard x:Key="PulseAnimation">
|
||||
<DoubleAnimation Storyboard.TargetProperty="Opacity" From="1" To="0.5" Duration="0:0:0.5" AutoReverse="True" RepeatBehavior="Forever"/>
|
||||
<ColorAnimation Storyboard.TargetProperty="Background.Color" From="#FF0000" To="#00FF00" Duration="0:0:1" AutoReverse="True" RepeatBehavior="Forever"/>
|
||||
</Storyboard>
|
||||
|
||||
</Window.Resources>
|
||||
|
||||
<Grid Background="{DynamicResource {x:Static SystemColors.ActiveBorderBrushKey}}">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="20*"></RowDefinition>
|
||||
<RowDefinition Height="170*"></RowDefinition>
|
||||
<RowDefinition Height="110*"></RowDefinition>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="200*"/>
|
||||
<ColumnDefinition Width="200*"/>
|
||||
<ColumnDefinition Width="200*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Border Grid.Column="1" Grid.Row="0">
|
||||
<Label x:Name="label" Content="Kanye West(Ye)" Grid.Column="1" Grid.Row ="0" HorizontalAlignment="Center"/>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Column="0" Grid.Row="1" MaxWidth="200">
|
||||
<Image Source="/Source/ye1.png" Margin="5,0,10,0"/>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Column="1" Grid.Row="1" HorizontalAlignment="Stretch" MaxWidth =" 200">
|
||||
<TextBlock TextWrapping="Wrap" HorizontalAlignment="Stretch" FontSize="12" FontWeight="Bold" Text="Канье Омари Уэст — известный американский рэпер, продюсер.
|
||||
Канье Уэст сначала стал известен как продюсер, создатель хитов для таких исполнителей, как Jay-Z, Ludacris, Талиб Квели и Алиша Киз. Затем он стал рэпером, выиграл 21 премию «Грэмми», продажи его альбомов и синглов в цифровом формате и на физических носителях превысили 121 миллион экземпляров." >
|
||||
</TextBlock>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Column="2" Grid.Row="1">
|
||||
<StackPanel >
|
||||
|
||||
<Label Margin="0,4" Content="Самые популярные песни" HorizontalAlignment ="Center"></Label>
|
||||
<Button x:Name ="btnSong1" Content="Flashinglights" HorizontalAlignment="Stretch" Padding="4" Margin="10,0,10,0" Grid.Row="1" VerticalAlignment="Top" Click="btnSong1_Click"/>
|
||||
<Button x:Name ="btnSong2" Content="Niggas in Paris" HorizontalAlignment="Stretch" Padding="4" Margin="10,5,10,0" Click="btnSong2_Click"/>
|
||||
<Button x:Name ="btnSong3" Content="POWER" HorizontalAlignment="Stretch" Padding="4" Margin="10,5,10,0" Click="btnSong3_Click"/>
|
||||
<Button x:Name ="btnSong4" Content="Stronger" HorizontalAlignment="Stretch" Padding="4" Margin="10,5,10,0" Click="btnSong4_Click"/>
|
||||
<Button x:Name ="btnSong5" Content="I wonder" HorizontalAlignment="Stretch" Padding="4" Margin="10,5,10,0" Click="btnSong5_Click"/>
|
||||
<Button x:Name ="btnSong6" Content="Fortnite balls" HorizontalAlignment="Stretch" Padding="4" Margin="10,5,10,0" Click="btnSong6_Click"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Column="0" Grid.Row = "2">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Button x:Name ="btnPlay" Content="----- Play -----" Margin="15,29,15,29" Click="btnPlay_Click" Background="Black"/>
|
||||
<Button x:Name ="btnPause" Content="---- Pause ----" Margin="0,29,0,29" Click="btnPause_Click"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Column="1" Grid.Row="2" MaxWidth="200">
|
||||
<Image Source =" Source\ye2.jpg" Margin="5,5,5,0" />
|
||||
</Border>
|
||||
|
||||
<Border Grid.Column="2" Grid.Row="2">
|
||||
<StackPanel >
|
||||
<Label Margin="0,4" Content="Самые популярные альбомы" HorizontalAlignment ="Center"></Label>
|
||||
<Button x:Name ="btnAlbum1" Content="Graduation" HorizontalAlignment="Stretch" Margin="5,0,5,0" VerticalAlignment="Top" Click="btnAlbum1_Click"/>
|
||||
<Button x:Name ="btnAlbum2" Content="DONDA" HorizontalAlignment="Stretch" Margin="5,10,5,0" Click="btnAlbum2_Click"/>
|
||||
<Button x:Name ="btnAlbum3" Content="VULTURES" HorizontalAlignment="Stretch" Margin="5,10,5,0" Click="btnAlbum3_Click"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
||||
|
@ -24,5 +24,60 @@ namespace TSChMI
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void btnSong1_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
MessageBox.Show("Крутая песня");
|
||||
}
|
||||
|
||||
private void btnSong2_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
MessageBox.Show("Мегакрутая песня");
|
||||
}
|
||||
|
||||
private void btnSong3_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
MessageBox.Show("Супер крутая песня");
|
||||
}
|
||||
|
||||
private void btnSong4_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
MessageBox.Show("Обалдеть какая крутая песня");
|
||||
}
|
||||
|
||||
private void btnSong5_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
MessageBox.Show("Жесть какая крутая песня");
|
||||
}
|
||||
|
||||
private void btnSong6_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
MessageBox.Show("Самая крутая песня в мире");
|
||||
}
|
||||
|
||||
private void btnAlbum1_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
MessageBox.Show("Альбом бомба");
|
||||
}
|
||||
|
||||
private void btnAlbum2_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
MessageBox.Show("Альбом мегабомба");
|
||||
}
|
||||
|
||||
private void btnAlbum3_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
MessageBox.Show("Альбом супермегабомба");
|
||||
}
|
||||
|
||||
private void btnPlay_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
MessageBox.Show("Воспроизведение");
|
||||
}
|
||||
|
||||
private void btnPause_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
MessageBox.Show("Пауза");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
BIN
TSChMI/Source/ye1.png
Normal file
BIN
TSChMI/Source/ye1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 872 KiB |
BIN
TSChMI/Source/ye2.jpg
Normal file
BIN
TSChMI/Source/ye2.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 47 KiB |
@ -94,5 +94,11 @@
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Source\ye2.jpg" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Source\ye1.png" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
Loading…
Reference in New Issue
Block a user