CrossSlideThresholds
CrossSlideThresholds
CrossSlideThresholds
CrossSlideThresholds
Struct
Definition
Contains the distance thresholds for a CrossSliding interaction.
public : struct CrossSlideThresholdspublic struct CrossSlideThresholdsPublic Structure CrossSlideThresholds// You can use this struct in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
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).

To disable a threshold, set its value to 0.0.
Fields
RearrangeStart RearrangeStart RearrangeStart RearrangeStart
The distance, in device-independent pixel (DIP), from the initial point of contact until the rearrange action is initiated.
public : field float RearrangeStartpublic field float RearrangeStartPublic Field RearrangeStart// You can use this field in JavaScript.
SelectionStart SelectionStart SelectionStart SelectionStart
The distance, in device-independent pixel (DIP), from the initial point of contact until the selection action is initiated.
public : field float SelectionStartpublic field float SelectionStartPublic Field SelectionStart// You can use this field in JavaScript.
SpeedBumpEnd SpeedBumpEnd SpeedBumpEnd SpeedBumpEnd
The distance, in device-independent pixel (DIP), from the initial point of contact until the end of the speed bump.
public : field float SpeedBumpEndpublic field float SpeedBumpEndPublic Field SpeedBumpEnd// You can use this field in JavaScript.
SpeedBumpStart SpeedBumpStart SpeedBumpStart SpeedBumpStart
The distance, in device-independent pixel (DIP), from the initial point of contact until the speed bump is initiated.
public : field float SpeedBumpStartpublic field float SpeedBumpStartPublic Field SpeedBumpStart// You can use this field in JavaScript.