Udostępnij za pośrednictwem


CrossSlideThresholds Struct

Definition

Contains the distance thresholds for a CrossSliding interaction.

public value class CrossSlideThresholds
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
struct CrossSlideThresholds
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public struct CrossSlideThresholds
var crossSlideThresholds = {
selectionStart : /* Your value */,
speedBumpStart : /* Your value */,
speedBumpEnd : /* Your value */,
rearrangeStart : /* Your value */
}
Public Structure CrossSlideThresholds
Inheritance
CrossSlideThresholds
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

A speed bump is a CrossSliding region in which the user experiences a slight drag (or friction) during the swipe or slide gesture.

The following diagram shows the CrossSliding regions and thresholds. The areas highlighted in blue are the selection/speed bump regions. (The region on the left shows the distance the tile must travel while the region on the right shows the equivalent distance that the touch contact must travel due to the speed bump behavior).

Screen shot showing CrossSlide regions and distance thresholds.

To disable a threshold, set its value to 0.0.

Fields

RearrangeStart

The distance, in device-independent pixel (DIP), from the initial point of contact until the rearrange action is initiated.

SelectionStart

The distance, in device-independent pixel (DIP), from the initial point of contact until the selection action is initiated.

SpeedBumpEnd

The distance, in device-independent pixel (DIP), from the initial point of contact until the end of the speed bump.

SpeedBumpStart

The distance, in device-independent pixel (DIP), from the initial point of contact until the speed bump is initiated.

Applies to

See also