Skip to main content

IScrollSnapPointsInfo Interface

Describes snap point behavior for objects that contain and present items.

Definition​

Namespace: Avalonia.Controls.Primitives
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public interface IScrollSnapPointsInfo
View Source

Properties​

AreHorizontalSnapPointsRegularGets or sets a value that indicates whether the horizontal snap points for the container are equidistant from each other.
AreVerticalSnapPointsRegularGets or sets a value that indicates whether the vertical snap points for the container are equidistant from each other.

Methods​

GetIrregularSnapPoints(Orientation, SnapPointsAlignment)Returns the set of distances between irregular snap points for a specified orientation and alignment.
GetRegularSnapPoints(Orientation, SnapPointsAlignment, Double)Gets the distance between regular snap points for a specified orientation and alignment.

Events​

HorizontalSnapPointsChangedOccurs when the measurements for horizontal snap points change.
VerticalSnapPointsChangedOccurs when the measurements for vertical snap points change.

See Also​

Reference​

Avalonia.Controls.Primitives Namespace