TriggerActionCollection Object

Represents a collection of trigger actions that can be individually accessed by index.

XAML
<TriggerActionCollection ...>
  oneOrMoreBeginStoryboards
</TriggerActionCollection>
Scripting
To create an object using scripting, see CreateFromXAML.

XAML Values

oneOrMoreBeginStoryboards One or more BeginStoryboard object elements.

Properties

Count, Name

Methods

Add, Clear, Equals, FindName, GetHost, GetItem, GetValue, Insert, Remove, RemoveAt, SetValue

Remarks

Despite the name of this collection, the items contained in the collection are not "TriggerAction" objects. Instead, they are BeginStoryboard objects.

TriggerActionCollection 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 BeginStoryboard.

The XAML syntax for properties that use a TriggerActionCollection is an example of an implicit collection syntax, where you can omit an actual TriggerActionCollection object element, as well as the <EventTrigger.Actions> property element. Instead, you generally include one or more BeginStoryboard elements as child elements of an EventTrigger. For more information about XAML implicit collection syntax, see XAML Syntax Overview. (Explicitly including a TriggerActionCollection 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

Interactive Animations Overview
BeginStoryboard