lab-5
This commit is contained in:
parent
610b6d4b8c
commit
ac1b47b546
@ -6,6 +6,30 @@
|
||||
xmlns:local="clr-namespace:Interfaces"
|
||||
mc:Ignorable="d"
|
||||
Title="SoundBox" Height="450" Width="800">
|
||||
<Window.Triggers>
|
||||
<EventTrigger RoutedEvent="Loaded">
|
||||
<EventTrigger.Actions>
|
||||
<BeginStoryboard>
|
||||
<Storyboard TargetProperty="Width" TargetName="ButtonExecute">
|
||||
<DoubleAnimation From="110"
|
||||
To="200"
|
||||
Duration="0:0:2"
|
||||
AutoReverse="True"
|
||||
RepeatBehavior="Forever"/>
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
<BeginStoryboard>
|
||||
<Storyboard TargetProperty="Width" TargetName="ButtonCancel">
|
||||
<DoubleAnimation From="200"
|
||||
To="110"
|
||||
Duration="0:0:2"
|
||||
AutoReverse="True"
|
||||
RepeatBehavior="Forever"/>
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
</EventTrigger.Actions>
|
||||
</EventTrigger>
|
||||
</Window.Triggers>
|
||||
<Window.Resources>
|
||||
<SolidColorBrush x:Key="ForestBackgroundColor" Color="Olive" />
|
||||
<SolidColorBrush x:Key="DesertBackgroundColor" Color="LightSalmon" />
|
||||
@ -48,8 +72,8 @@
|
||||
Background="{StaticResource SeaBackgroundColor}">
|
||||
<StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal"
|
||||
HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||
<Button Margin="10,5,10,5" Padding="3,3,3,3">Execute</Button>
|
||||
<Button Margin="10,5,10,5" Padding="3,3,3,3">Cancel</Button>
|
||||
<Button Name="ButtonExecute" Margin="10,5,10,5" Padding="3,3,3,3">Execute</Button>
|
||||
<Button Name="ButtonCancel" Margin="10,5,10,5" Padding="3,3,3,3">Cancel</Button>
|
||||
</StackPanel>
|
||||
<DockPanel Background="Black">
|
||||
<Viewbox>
|
||||
|
Loading…
Reference in New Issue
Block a user