TriggerCollection Object
Represents a collection of EventTrigger objects.
XAML |
<TriggerCollection ...> oneOrMoreEventTriggers </TriggerCollection> |
Scripting |
To create an object using scripting, see CreateFromXAML.
|
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. |
Properties
Methods
Add, Clear, Equals, FindName, GetHost, GetItem, GetValue, Insert, Remove, RemoveAt, SetValue
Remarks
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 an implicit collection syntax, where 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. For more information about XAML implicit collection syntax, see XAML Syntax Overview. (Explicitly including a TriggerCollection object element is permissible XAML syntax, and might be useful if you intend to name the collection in XAML and manipulate its contents through script later.)