VirtualizingStackPanelGetRegularSnapPoints Method

Gets the distance between regular snap points for a specified orientation and alignment.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public double GetRegularSnapPoints(
	Orientation orientation,
	SnapPointsAlignment snapPointsAlignment,
	out double offset
)

Parameters

orientation  Orientation
The orientation for the desired snap point set.
snapPointsAlignment  SnapPointsAlignment
The alignment to use when applying the snap points.
offset  Double
Out parameter. The offset of the first snap point.

Return Value

Double
The distance between the equidistant snap points. Returns 0 when no snap points are present.

Implements

IScrollSnapPointsInfoGetRegularSnapPoints(Orientation, SnapPointsAlignment, Double)

See Also