drumkit-old/DrumKit/bin/Debug/DrumPlayUI.xaml

62 lines
2.6 KiB
XML

<UserControl
x:Class="DrumKit.DrumPlayUI"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:DrumKit"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="300"
d:DesignWidth="400">
<Grid x:ConnectionId='1' Name="grid" Background="Transparent"
>
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="DrumGroups">
<VisualState x:Name="DrumNormal">
<Storyboard>
<DoubleAnimation Storyboard.TargetName="imagePressed"
Storyboard.TargetProperty="Opacity"
BeginTime="0:0:0.2" Duration="0:0:0.7" To="0" >
<DoubleAnimation.EasingFunction>
<SineEase EasingMode="EaseInOut" />
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
<DoubleAnimation Storyboard.TargetName="image"
Storyboard.TargetProperty="Opacity"
BeginTime="0:0:0.2" Duration="0:0:0.3" To="1" />
</Storyboard>
</VisualState>
<VisualState x:Name="DrumHit">
<Storyboard>
<DoubleAnimation Storyboard.TargetName="imagePressed"
Storyboard.TargetProperty="Opacity"
Duration="0" To="1" />
<DoubleAnimation Storyboard.TargetName="image"
Storyboard.TargetProperty="Opacity"
Duration="0" To=".5" />
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<Image Name="image" IsHitTestVisible="False"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch" />
<Image Name="imagePressed" IsHitTestVisible="False"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Opacity="0" />
</Grid>
</UserControl>