Share via


Triggers Property

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

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

XAML Values

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. See Remarks in EventTrigger for limitations on which events are supported in Silverlight 1.0.

Property Value

TriggerCollection

A collection of triggers.

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

Remarks

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.

Applies To

Canvas, Ellipse, Glyphs, Image, InkPresenter, Line, MediaElement, Path, Polygon, Polyline, Rectangle, TextBlock

See Also

Interactive Animations Overview