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 Storyboards with Timeline Properties

A Storyboard is more than just a simple container that associates animations with target objects and their properties. Because Storyboard derives from Timeline, it has many of the same properties discussed previously: Duration, BeginTime, SpeedRatio, AutoReverse, RepeatBehavior, and FillBehavior (and the Completed event).

The following Storyboard fades one TextBlock in and out at a time, for an effect somewhat like that of a movie trailer. The Storyboard itself is marked with a RepeatBehavior to make the entire sequence of animation repeat indefinitely. Figure 19.8 shows how this is rendered at three different spots of the sequence:

<Page ...>  <Page.Resources>    <

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