GestureRecognizer.Holding | holding event

Expand Minimize
This topic has not yet been rated - Rate this topic

Occurs when a user performs a press and hold gesture (with a single touch, mouse, or pen/stylus contact).

Syntax


function onHolding(eventArgs) { /* Your code */ }
 
// addEventListener syntax
gestureRecognizer.addEventListener("holding", onHolding);
gestureRecognizer.removeEventListener("holding", onHolding);
 
- or -

gestureRecognizer.onholding = onHolding;


Event information

Delegate TypedEventHandler<GestureRecognizer, HoldingEventArgs>

Remarks

To support Holding with touch and pen/stylus input, specify Hold in the GestureSettings property.

To support Holding with mouse input, specify HoldWithMouse in the GestureSettings property.

The Holding event is fired twice: Once when holding starts (started) and again when holding ends (completed or canceled).

Windows Phone 8

This API is not implemented and will throw an exception if called.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.UI.Input
Windows::UI::Input [C++]

Metadata

Windows.winmd

See also

GestureRecognizer
TypedEventHandler
HoldingEventArgs

 

 

Build date: 2/25/2013

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.