Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.82 KB

timelinecollection.md

File metadata and controls

35 lines (24 loc) · 1.82 KB
-api-id -api-type
T:Microsoft.UI.Xaml.Media.Animation.TimelineCollection
winrt class

Microsoft.UI.Xaml.Media.Animation.TimelineCollection

-description

Represents a collection of Timeline objects (specific type animations). A TimelineCollection is the value of the Storyboard.Children property.

-xaml-syntax

<Storyboard ...>
  oneOrMoreChildTimelines
</Storyboard>

-remarks

Enumerating the collection in C# or Microsoft Visual Basic

A TimelineCollection is enumerable, so you can use language-specific syntax such as foreach in C# to enumerate the items in the collection. The compiler does the type-casting for you and you won't need to cast to IEnumerable<Timeline> explicitly. If you do need to cast explicitly, for example if you want to call GetEnumerator, cast to IEnumerable with a Timeline constraint.

-examples

-see-also

IVector<T>, IIterable<T>, IList, Storyboard, Storyboard.Children, Storyboarded animations