Skip to content

Instantly share code, notes, and snippets.

@ciscoheat
Last active December 4, 2015 23:52
Show Gist options
  • Select an option

  • Save ciscoheat/52b3faccbbd25041885e to your computer and use it in GitHub Desktop.

Select an option

Save ciscoheat/52b3faccbbd25041885e to your computer and use it in GitHub Desktop.
Silverlight animation declaration...
<Canvas xmlns="..." xmlns:x="..." ...>
<Canvas.Resources>
<Storyboard
x:Name="mouseEnterAnimation">
<ColorAnimation
Duration="00:00:0.2"
To="Purple"
Storyboard.TargetProperty=
"(Shape.Fill).(GradientBrush.
GradientStops)[1].
(GradientStop.Color)" />
<DoubleAnimation
Duration="00:00:0.2"
To="0.247" Storyboard.TargetProperty=
"(Shape.Fill).(GradientBrush.
GradientStops)[1].
(GradientStop.Offset)" />
</Storyboard>
<Storyboard
x:Name="mouseLeaveAnimation">
<ColorAnimation
Duration="00:00:0.2"
To="#ffb1b1b1"
Storyboard.TargetProperty=
"(Shape.Fill).(GradientBrush.
GradientStops)[1].
(GradientStop.Color)" />
<DoubleAnimation
Duration="00:00:0.2"
To="0.494382"
Storyboard.TargetProperty=
"(Shape.Fill).(GradientBrush.
GradientStops)[1].
(GradientStop.Offset)" />
</Storyboard>
</Canvas.Resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment