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 |
|
|
Metadata |
|
See also
Build date: 2/25/2013