Sdílet prostřednictvím


GestureRecognizer.CrossSlideExact Property

Definition

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.

public:
 property bool CrossSlideExact { bool get(); void set(bool value); };
bool CrossSlideExact();

void CrossSlideExact(bool value);
public bool CrossSlideExact { get; set; }
var boolean = gestureRecognizer.crossSlideExact;
gestureRecognizer.crossSlideExact = boolean;
Public Property CrossSlideExact As Boolean

Property Value

Boolean

bool

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

Applies to

See also