СДАЛ ВСЕ 6
This commit is contained in:
parent
eb2977e49f
commit
3174d8c551
@ -5,13 +5,62 @@
|
|||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:local="clr-namespace:TCPMI"
|
xmlns:local="clr-namespace:TCPMI"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
Title="Галлерея" MinHeight="435" MinWidth="710" MaxHeight="1080" MaxWidth="1920">
|
Title="Галлерея" MinHeight="440" MinWidth="740" MaxHeight="1080" MaxWidth="1920">
|
||||||
<Window.Resources>
|
<Window.Resources>
|
||||||
<LinearGradientBrush x:Key="gradientStyle" StartPoint="0.5,1" EndPoint="0.5,0">
|
<SolidColorBrush x:Key="OrangeBrush" Color="#FFA500" />
|
||||||
<GradientStop Color="#FF696B69" Offset="0" />
|
<Style TargetType="{x:Type Button}" x:Key="ButtonStyle">
|
||||||
<GradientStop Color="#363636" Offset="1" />
|
<Style.Setters>
|
||||||
</LinearGradientBrush>
|
<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.Resources>
|
||||||
|
<Window.CommandBindings>
|
||||||
|
<CommandBinding Command="Help" Executed="WindowBinding_Executed" />
|
||||||
|
</Window.CommandBindings>
|
||||||
<Grid x:Name="MainGrid" Background="#363636">
|
<Grid x:Name="MainGrid" Background="#363636">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition />
|
<ColumnDefinition />
|
||||||
@ -21,57 +70,31 @@
|
|||||||
<RowDefinition Height="*"/>
|
<RowDefinition Height="*"/>
|
||||||
<RowDefinition Height="10*"/>
|
<RowDefinition Height="10*"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<Border BorderBrush="#FFA500" BorderThickness="5" Grid.Column="0" Grid.Row="0" Grid.RowSpan="2">
|
<Border BorderBrush="{StaticResource OrangeBrush}" BorderThickness="5" Grid.Column="0" Grid.Row="0" Grid.RowSpan="2">
|
||||||
<DockPanel LastChildFill="False" Name="ButtonPanel" Background="#696969">
|
<DockPanel LastChildFill="False" Name="ButtonPanel" Background="#696969">
|
||||||
<Button DockPanel.Dock="Top" HorizontalAlignment="Center" Margin="20 40 20 20" Padding="10 5 10 5" Foreground="#FFA500" BorderBrush="#FFA500" BorderThickness="3" Background="{StaticResource gradientStyle}">
|
<Button DockPanel.Dock="Top" Command="ApplicationCommands.Help" Style="{StaticResource ButtonStyle}">
|
||||||
Галерея
|
Галерея
|
||||||
<Button.Resources>
|
|
||||||
<Style TargetType="Border">
|
|
||||||
<Setter Property="CornerRadius" Value="10"/>
|
|
||||||
</Style>
|
|
||||||
<SolidColorBrush x:Key="darkStyle" Color="Gray" />
|
|
||||||
</Button.Resources>
|
|
||||||
</Button>
|
</Button>
|
||||||
<Button DockPanel.Dock="Top" HorizontalAlignment="Center" Margin="20 50 20 20" Padding="10 5 10 5" Foreground="#FFA500" BorderBrush="#FFA500" BorderThickness="3" Background="{StaticResource gradientStyle}">
|
<Button DockPanel.Dock="Top" Command="ApplicationCommands.Help" Style="{StaticResource ButtonStyle}">
|
||||||
Слайд шоу
|
Слайд шоу
|
||||||
<Button.Resources>
|
|
||||||
<Style TargetType="Border">
|
|
||||||
<Setter Property="CornerRadius" Value="10"/>
|
|
||||||
</Style>
|
|
||||||
<SolidColorBrush x:Key="darkStyle" Color="Gray" />
|
|
||||||
</Button.Resources>
|
|
||||||
</Button>
|
</Button>
|
||||||
<Button DockPanel.Dock="Top" HorizontalAlignment="Center" Margin="20 50 20 20" Padding="10 5 10 5" Foreground="#FFA500" BorderBrush="#FFA500" BorderThickness="3" Background="{StaticResource gradientStyle}">
|
<Button DockPanel.Dock="Top" Command="ApplicationCommands.Help" Style="{StaticResource ButtonStyle}">
|
||||||
Редактор
|
Редактор
|
||||||
<Button.Resources>
|
|
||||||
<Style TargetType="Border">
|
|
||||||
<Setter Property="CornerRadius" Value="10"/>
|
|
||||||
</Style>
|
|
||||||
<SolidColorBrush x:Key="darkStyle" Color="Gray" />
|
|
||||||
</Button.Resources>
|
|
||||||
</Button>
|
</Button>
|
||||||
<Button DockPanel.Dock="Top" HorizontalAlignment="Center" Margin="20 40 20 20" Padding="10 5 10 5" VerticalAlignment="Center" Foreground="#FFA500" BorderBrush="#FFA500" BorderThickness="3" Background="{StaticResource gradientStyle}">
|
<Button DockPanel.Dock="Top" Command="ApplicationCommands.Help" Style="{StaticResource ButtonStyle}">
|
||||||
Корзина
|
Корзина
|
||||||
<Button.Resources>
|
|
||||||
<Style TargetType="Border">
|
|
||||||
<Setter Property="CornerRadius" Value="10"/>
|
|
||||||
</Style>
|
|
||||||
<SolidColorBrush x:Key="darkStyle" Color="Gray" />
|
|
||||||
</Button.Resources>
|
|
||||||
</Button>
|
</Button>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
</Border>
|
</Border>
|
||||||
<Border Grid.Column="1" Grid.Row="0" BorderBrush="#FFA500" BorderThickness="5">
|
<Border Grid.Column="1" Grid.Row="0" BorderBrush="{StaticResource OrangeBrush}" BorderThickness="5" >
|
||||||
<WrapPanel HorizontalAlignment="Center" VerticalAlignment="Center">
|
<WrapPanel HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||||
<Label Foreground="#FFA500" VerticalAlignment="center">
|
<Label Foreground="{StaticResource OrangeBrush}" VerticalAlignment="center">
|
||||||
<Bold>Сортировать по:</Bold>
|
<Bold>Сортировать по:</Bold>
|
||||||
</Label>
|
</Label>
|
||||||
<RadioButton Foreground="#FFA500" Content="Дате" VerticalAlignment="Center" Margin="20, 0, 0, 0" />
|
<RadioButton Content="Дате" Style="{StaticResource My_radio_button}" />
|
||||||
<RadioButton Foreground="#FFA500" Content="Размеру" VerticalAlignment="Center" Margin="20, 0, 0, 0" />
|
<RadioButton Content="Размеру" Style="{StaticResource My_radio_button}" />
|
||||||
<RadioButton Foreground="#FFA500" Content="Названию" VerticalAlignment="Center" Margin="20, 0, 0, 0" />
|
<RadioButton Content="Названию" Style="{StaticResource My_radio_button}" />
|
||||||
</WrapPanel>
|
</WrapPanel>
|
||||||
</Border>
|
</Border>
|
||||||
<DockPanel Grid.Column="1" Grid.Row="1">
|
|
||||||
</DockPanel>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</Window>
|
</Window>
|
||||||
|
@ -24,5 +24,10 @@ namespace TCPMI
|
|||||||
{
|
{
|
||||||
InitializeComponent();
|
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.
Loading…
Reference in New Issue
Block a user