Export (0) Print
Expand All
Run
Expand Minimize

TriggerCollection

Silverlight

Represents a collection of EventTrigger objects.

<TriggerCollection   ...>
  oneOrMoreEventTriggers
</TriggerCollection>

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. See the Remarks section in EventTrigger for supported events in Silverlight.

TriggerCollection 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 EventTrigger.

The XAML syntax for properties that use a TriggerCollection is an example of implicit collection syntax, in which you can omit an actual TriggerCollection object element. Instead, you generally include one or more EventTrigger elements as child elements of an <object.Triggers> property element tag.

Community Additions

ADD
Show:
© 2015 Microsoft