Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
3174d8c551 | |||
eb2977e49f | |||
7c7a620f78 | |||
88607f7c10 | |||
b61c12f8ea | |||
e524748f54 | |||
f54257bd1d | |||
5d68334b99 |
@ -5,8 +5,96 @@
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:TCPMI"
|
||||
mc:Ignorable="d"
|
||||
Title="MainWindow" Height="450" Width="800">
|
||||
<Grid>
|
||||
|
||||
Title="Галлерея" MinHeight="440" MinWidth="740" MaxHeight="1080" MaxWidth="1920">
|
||||
<Window.Resources>
|
||||
<SolidColorBrush x:Key="OrangeBrush" Color="#FFA500" />
|
||||
<Style TargetType="{x:Type Button}" x:Key="ButtonStyle">
|
||||
<Style.Setters>
|
||||
<Setter Property="Background">
|
||||
<Setter.Value>
|
||||
<LinearGradientBrush StartPoint="0.5,1" EndPoint="0.5,0">
|
||||
<GradientStop Color="#FF696B69" Offset="0" />
|
||||
<GradientStop Color="#363636" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
<Setter Property="FontFamily" Value="Verdana" />
|
||||
<Setter Property="Foreground" Value="#FFA500" />
|
||||
<Setter Property="Margin" Value="15 15 15 15" />
|
||||
<Setter Property="Padding" Value="10 5 10 5"/>
|
||||
<Setter Property="BorderBrush" Value="#FFA500"/>
|
||||
<Setter Property="BorderThickness" Value="3"/>
|
||||
<Setter Property="HorizontalAlignment" Value="Center"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Button}">
|
||||
<Border x:Name="Border" CornerRadius="10" BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
|
||||
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Margin="{TemplateBinding Padding}"/>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style.Setters>
|
||||
<Style.Triggers>
|
||||
<EventTrigger RoutedEvent="Click">
|
||||
<EventTrigger.Actions>
|
||||
<BeginStoryboard>
|
||||
<Storyboard>
|
||||
<DoubleAnimation
|
||||
AutoReverse="True"
|
||||
Storyboard.TargetProperty="Opacity"
|
||||
From="1" To="0" Duration="0:0:1" />
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
<SoundPlayerAction Source="C:\Users\Programmist73\Desktop\Практика\2-й курс\4-й семестр\ТСЧМИ\Лабораторные\TCPMI\TCPMI\knopka-tsifrovoi-zvonkii-myagkii.wav"/>
|
||||
</EventTrigger.Actions>
|
||||
</EventTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
<Style x:Key="My_radio_button">
|
||||
<Setter Property="Control.Margin" Value="15 0 0 0"/>
|
||||
<Setter Property="Control.Foreground" Value="#FFA500"/>
|
||||
<Setter Property="Control.VerticalAlignment" Value="Center"/>
|
||||
</Style>
|
||||
</Window.Resources>
|
||||
<Window.CommandBindings>
|
||||
<CommandBinding Command="Help" Executed="WindowBinding_Executed" />
|
||||
</Window.CommandBindings>
|
||||
<Grid x:Name="MainGrid" Background="#363636">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="4*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="10*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Border BorderBrush="{StaticResource OrangeBrush}" BorderThickness="5" Grid.Column="0" Grid.Row="0" Grid.RowSpan="2">
|
||||
<DockPanel LastChildFill="False" Name="ButtonPanel" Background="#696969">
|
||||
<Button DockPanel.Dock="Top" Command="ApplicationCommands.Help" Style="{StaticResource ButtonStyle}">
|
||||
Галерея
|
||||
</Button>
|
||||
<Button DockPanel.Dock="Top" Command="ApplicationCommands.Help" Style="{StaticResource ButtonStyle}">
|
||||
Слайд шоу
|
||||
</Button>
|
||||
<Button DockPanel.Dock="Top" Command="ApplicationCommands.Help" Style="{StaticResource ButtonStyle}">
|
||||
Редактор
|
||||
</Button>
|
||||
<Button DockPanel.Dock="Top" Command="ApplicationCommands.Help" Style="{StaticResource ButtonStyle}">
|
||||
Корзина
|
||||
</Button>
|
||||
</DockPanel>
|
||||
</Border>
|
||||
<Border Grid.Column="1" Grid.Row="0" BorderBrush="{StaticResource OrangeBrush}" BorderThickness="5" >
|
||||
<WrapPanel HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||
<Label Foreground="{StaticResource OrangeBrush}" VerticalAlignment="center">
|
||||
<Bold>Сортировать по:</Bold>
|
||||
</Label>
|
||||
<RadioButton Content="Дате" Style="{StaticResource My_radio_button}" />
|
||||
<RadioButton Content="Размеру" Style="{StaticResource My_radio_button}" />
|
||||
<RadioButton Content="Названию" Style="{StaticResource My_radio_button}" />
|
||||
</WrapPanel>
|
||||
</Border>
|
||||
</Grid>
|
||||
</Window>
|
||||
|
@ -24,5 +24,10 @@ namespace TCPMI
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void WindowBinding_Executed(object sender, ExecutedRoutedEventArgs e)
|
||||
{
|
||||
MessageBox.Show("Эта команда работает :)");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
BIN
TCPMI/TCPMI/knopka-tsifrovoi-zvonkii-myagkii.wav
Normal file
BIN
TCPMI/TCPMI/knopka-tsifrovoi-zvonkii-myagkii.wav
Normal file
Binary file not shown.
BIN
TCPMI/TCPMI/Изображения/1.png
Normal file
BIN
TCPMI/TCPMI/Изображения/1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
BIN
TCPMI/TCPMI/Изображения/2.png
Normal file
BIN
TCPMI/TCPMI/Изображения/2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
BIN
TCPMI/TCPMI/Изображения/3.png
Normal file
BIN
TCPMI/TCPMI/Изображения/3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
Loading…
Reference in New Issue
Block a user