Share via


IXRUIElement::AddGestureEventHandler (Windows Embedded CE 6.0)

1/6/2010

This method attaches a delegate to the Gesture event for this UI element. When the UI element raises the Gesture event, this delegate will be invoked.

Syntax

virtual HRESULT STDMETHODCALLTYPE AddGestureEventHandler(
    IXRDelegate<XRGestureEventArgs>* pDelegate
) = 0;

Parameters

  • pDelegate
    [in] IXRDelegate<ArgType> object that you want to attach to the Gesture event, which is raised when an ink-related gesture is recognized.

Return Value

Returns an HRESULT that indicates success or failure.

Returns XR_E_INVALID_OBJECT if pDelegate is not a Silverlight object.

Remarks

To recognize gestures, you must use an object or control that can collect ink.

.NET Framework Equivalent

None.

Requirements

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

See Also

Reference

IXRUIElement
IXRUIElement::RemoveGestureEventHandler
XRGestureEventArgs

Concepts

Handle Events in Silverlight for Windows Embedded