SnapPointsType Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the snap points behavior when scrolling through items in an items layout.
public enum class SnapPointsType
public enum SnapPointsType
type SnapPointsType =
Public Enum SnapPointsType
- Inheritance
-
SnapPointsType
Fields
| Name | Value | Description |
|---|---|---|
| None | 0 | No snap points. Scrolling stops wherever the user releases, with standard inertia. |
| Mandatory | 1 | Scrolling snaps to the nearest snap point, but the user can scroll past multiple snap points in a single gesture. After scrolling stops, the view snaps to the nearest item. |
| MandatorySingle | 2 | Scrolling snaps to exactly one adjacent snap point per gesture. The user can only advance or go back by one item at a time, regardless of scroll velocity. This is commonly used for CarouselView to ensure precise item-by-item navigation. |
Remarks
Snap points control how scrolling behaves when the user stops interacting with the view. They create discrete stopping points, commonly used for paging or carousel-style navigation.