TriggerCollection
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Represents a collection of EventTrigger objects.
<TriggerCollection ...>
oneOrMoreEventTriggers
</TriggerCollection>
XAML Values
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. |
Methods
Add, Clear, Equals, FindName (DependencyObject), 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 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.