Share via


IXRUIElement::AddGestureEventHandler (Compact 2013)

3/28/2014

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

Return Value

Returns an HRESULT that indicates success or failure.

Returns XR_E_INVALID_OBJECT if pDelegate is not a XAML for Windows Embedded object.

Remarks

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

.NET Framework Equivalent

None.

Requirements

Header

XamlRuntime.h,
XRDelegate.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRUIElement
IXRUIElement::RemoveGestureEventHandler
XRGestureEventArgs