IXRDelegate<ArgType> (Windows Embedded CE 6.0)

1/6/2010

This template class represents a delegate object customized for a specific type of event.

This class also supports the methods on the IUnknown interface.

Syntax

template <typename ArgType>
class IXRDelegate : public IUnknown

Methods

Method Description

IXRDelegate<ArgType>::Invoke

Causes this delegate object to call the event handler that is represented by this delegate object.

Remarks

This template class provides the basic structure of a generic delegate object. It can be customized by specifying a structure for the generic ArgType parameter that stores data for a specific event type.

The following list shows the structures that hold data for the event types supported by Silverlight for Windows Embedded:

XRDragDeltaEventArgs

XRDragStartedEventArgs

XREventArgs

XRKeyEventArgs

XRMouseButtonEventArgs

XRMouseEventArgs

XRRoutedEventArgs

XRTextChangedEventArgs

XRDragCompletedEventArgs

XRValueChangedEventArgs<_ValueType>

XRSelectionChangedEventArgs

XRGestureEventArgs

XRScrollChangedEventArgs

XRSizeChangedEventArgs

XRScrollEventArgs

 

This object is created internally by Silverlight for Windows Embedded when an application calls the helper function CreateDelegate. This helper function takes an object and a method pointer (to an event handler) and converts them both into an IXRDelegate object.

.NET Framework Equivalent

None.

Requirements

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

See Also

Reference

Classes for Application Management

Concepts

Handle Events in Silverlight for Windows Embedded

Other Resources