GestureRecognizer.CrossSliding | crosssliding event

Expand Minimize
2 out of 5 rated this helpful - Rate this topic

Occurs when a user performs a slide or swipe gesture (through a single touch contact) within a content area that supports panning along a single axis only. The gesture must occur in a direction that is perpendicular to this panning axis.

Note  A swipe is a short sliding gesture that results in a selection action while the longer slide gesture crosses a distance threshold and results in a rearrange action. The swipe and slide gestures are demonstrated in the following diagram.

Diagram showing the select and drag actions.

Syntax


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

gestureRecognizer.oncrosssliding = onCrossSliding;


Event information

Delegate TypedEventHandler<GestureRecognizer, CrossSlidingEventArgs>

Remarks

CrossSlide must be set in the GestureSettings property to support CrossSliding.

CrossSliding distance thresholds are disabled by default. Use CrossSlideThresholds to set these values.

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
CrossSlidingEventArgs

 

 

Build date: 2/25/2013

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