Share via


VirtualizingLayoutContext.RecommendedAnchorIndex Property

Definition

Gets the recommended index from which to start the generation and layout of elements.

public:
 property int RecommendedAnchorIndex { int get(); };
int RecommendedAnchorIndex();
public int RecommendedAnchorIndex { get; }
var int32 = virtualizingLayoutContext.recommendedAnchorIndex;
Public ReadOnly Property RecommendedAnchorIndex As Integer

Property Value

Int32

int

The recommended index from which the layout should start.

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 & 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.

Applies to