O'Reilly logo

XAML Unleashed by Adam Nathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Tweaking Theme Animations

In addition to the already described properties that some of the theme animations expose, all animations expose a number of properties from their base class called Timeline. They also expose a simple Completed event. Every animation, even custom ones, must derive from Timeline. (The only reason this class isn’t given the name Animation is that Storyboard also derives from it.)

These properties enable a variety of interesting changes, such as delaying the animation, changing its speed, making the animation automatically play backwards once it completes, and so on. For example, the following FadeOutThemeAnimation makes an element repetitively fade out and then back in indefinitely:

<FadeOutThemeAnimation ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required