Export (0) Print
Expand All
Key
M11
M12
M21
M22
Tag
Uri
X1
X2
Y1
Y2
Expand Minimize

Actions

Silverlight

Gets (or sets, in XAML only) the collection of actions to apply when an event occurs.

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

Value

Description

oneOrMoreBeginStoryboards

One or more BeginStoryboard object elements.

Type: TriggerActionCollection

A collection of actions to apply when an event occurs.

This property is read-only in scripting, and settable only through XAML. The default value is an empty collection.

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

As soon as the collection of actions exists, you can manipulate the collection by using the value of the Actions property in scripting. The value will be a TriggerActionCollection object, and you can add, remove, clear, or query the BeginStoryboard children in that collection. However, you cannot replace the collection with an entirely new collection.

Community Additions

ADD
Show:
© 2014 Microsoft