VirtualizingLayoutContext.

RecommendedAnchorIndex Property

Summary

Gets the recommended index from which to start the generation and layout of elements.
Namespace
Avalonia.Layout
Containing Type
VirtualizingLayoutContext

Syntax

public int RecommendedAnchorIndex { get; }

Remarks

The recommended index might be the result of programmatically realizing an element and requesting that it be brought into view. Or, it may be that a user drags the scrollbar thumb so quickly that the new viewport and the viewport and buffer previously given to the layout do not intersect, so a new index is suggested as the anchor from which to generate and layout other elements.

Value

Type Description
int