Expand Minimize

GestureRecognizer.CrossSlideExact | crossSlideExact property

Applies to Windows and Windows Phone

Gets or sets a value that indicates whether the exact distance from initial contact to end of the cross-slide interaction is reported.

By default, a small distance threshold is subtracted from the first position reported by the system for cross-slide interactions. If this flag is set, the distance threshold is not subtracted from the initial position.

Note  

This distance threshold is intended to account for any slight movement of the contact after initial detection. It helps the system differentiate between cross-sliding and panning, and helps ensure that a tap gesture is not interpreted as either.

Syntax


public bool CrossSlideExact { get; set; }

Property value

Type: Boolean [JavaScript] | System.Boolean [.NET] | Platform::Boolean [C++]

True if the distance threshold is not subtracted; otherwise false. The default value is false.

Remarks

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

The threshold distances used by the cross-slide interaction are shown in the following diagram.

Screen shot showing the select and drag and drop processes.

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

 

 

Show:
© 2014 Microsoft