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.


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

pDelegate

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

Returns an HRESULT that indicates success or failure.

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

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

Header

XamlRuntime.h,
XRDelegate.h

sysgen

SYSGEN_XAML_RUNTIME

Show: