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

Triggers

Silverlight

Gets the collection of triggers established directly on this element or in child elements.

<object>
  <object.Triggers>
    oneOrMoreEventTriggers
  </object.Triggers>
</object>
value = object.Triggers

Value

Description

oneOrMoreEventTriggers

One or more EventTrigger object elements. Each EventTrigger object element must specify the RoutedEvent attribute. You can specify multiple EventTrigger elements that have the same RoutedEvent value. For information about which events are supported in Silverlight 1.0, see the "Remarks" section in the EventTrigger reference topic.

Type: TriggerCollection

A collection of triggers.

This property is read-only. The default value is null.

The Triggers collection is populated by actions. Triggers is one of two places in the object model where you can place a storyboard for an animation. The other place is as an object in Resources.

The XAML syntax shown is the syntax for populating items in the TriggerCollection. You cannot replace the entire collection, either in XAML or in script. However, you can add items, remove items, and perform other operations with the existing collection contained by the Triggers property, both in XAML and in script.

Community Additions

ADD
Show:
© 2014 Microsoft