Expand Minimize

GestureRecognizer.CrossSliding | crosssliding event

Applies to Windows and Windows Phone

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.

For more detail on how to use cross-slide functionality, see Guidelines for cross-slide.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

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

Metadata

Windows.winmd

See also

GestureRecognizer
TypedEventHandler
CrossSlidingEventArgs

 

 

Show:
© 2014 Microsoft