Partager via


IXRTriggerCollection (Windows Embedded CE 6.0)

1/6/2010

This class represents a collection of IXRTriggerBase objects.

Syntax

class IXRTriggerCollection : public IXRCollection<IXRTriggerBase*, IXRDependencyObject*>

Methods

IXRTriggerCollection inherits the methods from the template class IXRCollection<In_T, Out_T>. It uses In_T parameters of type IXRTriggerBase*, and uses Out_T parameters of type IXRDependencyObject*.

Remarks

This class contains a collection of event triggers that each apply a set of actions (animation storyboards) to object and property values, in response to an event. When a framework element has event triggers, storyboard animations are triggered when the Loaded event is raised.

You can obtain a trigger collection for a framework element that was defined in the source XAML by calling IXRFrameworkElement::GetTriggers.

You can remove items from the existing collection by using the inherited IXRCollection<In_T, Out_T>::Remove or IXRCollection<In_T, Out_T>::RemoveAt methods of IXRTriggerCollection. You can access items in the existing collection by using the inherited IXRCollection<In_T, Out_T>::GetItem method. You can clear the complete collection by using the inherited IXRCollection<In_T, Out_T>::Clear method.

You can define a trigger collection in Microsoft Silverlight 2 XAML. For information about the differences between XAML in Silverlight for Windows Embedded and Silverlight 2, see Differences Between Silverlight for the Web and Silverlight for Windows Embedded. For more information about how to define this element in the source XAML for your application, see this Microsoft Web site.

Inheritance Hierarchy

IXRDependencyObject

    IXRCollection<In_T, Out_T>

        IXRTriggerCollection

.NET Framework Equivalent

System.Windows.TriggerCollection

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

Classes for Collection Management