Andrew Stopford's Weblog

poobah

Sponsors

News

Articles

Family

Old Blogs

XAML button animation

If you have been using the O'Reilly WPF book then on page 191 it has a section on animating color on buttons, its not listed on Chris's errata page but for referance it should be.

<EventTrigger RoutedEvent="Click">

<EventTrigger.Actions>

<BeginStoryboard>

<Storyboard>

<ColorAnimation From="Yellow" To="White" Duration="0:0:5" Storyboard.TargetProperty="(Background).(SolidColorBrush.Color)" />

</Storyboard>

</BeginStoryboard >

</EventTrigger.Actions>

</EventTrigger>

Comments

No Comments