Export (0) Print
Expand All

Actions Property

Gets the collection of actions to apply when the event occurs.

XAML
<EventTrigger>
  oneOrMoreBeginStoryboards
</EventTrigger>
Scripting
value = object.Actions
object.Actions = value

XAML Values

oneOrMoreBeginStoryboards One or more BeginStoryboard object elements.

Property Value

TriggerActionCollection

A collection of actions to apply when the event occurs

This property is read/write. The default value is an empty collection.

Remarks

You do not typically specify Actions as an explicit property element in XAML, because it is the default collection property of an EventTrigger. You will set the Actions value in XAML by placing one or more BeginStoryboard elements as the child elements of an EventTrigger object element.

Once the collections of actions exists, you can manipulate the collection of actions using the value of the Actions property in scripting. The value will be a TriggerActionCollection, and you can add, remove, clear or query the BeginStoryboard children in that collection.

Applies To

EventTrigger

See Also

Community Additions

Show:
© 2014 Microsoft