TimelineCollection Object

Represents a collection of objects that derive from Timeline, such as Storyboard or the various Color, Double, and Point animations.

Cannot be used in XAML
Cannot explicitly create, reference to existing only.


TimelineCollection defines no methods or properties beyond the basic Collection methods and properties. Methods such as Add or GetItem will expect or return objects that are of type Timeline.

The XAML syntax for properties that use a TimelineCollection is an example of an implicit collection syntax, where you omit an actual TimelineCollection object element. Instead, you generally include one or more animation types (Timeline elements) as child elements of a Storyboard. In this case the explicit syntax is not permitted; neither a <Storyboard.Children> property element nor a <TimelineCollection> object element are accepted by the parser. For more information about XAML implicit collection syntax, see XAML Syntax Overview. (Explicitly including a TimelineCollection object element is permissible XAML syntax, and might be useful if you intend to name the collection in XAML and manipulate its contents through script later.)

See Also

Animation Overview

Community Additions