VirtualizingLayoutContext.RecommendedAnchorIndex Property
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.
Gets the recommended index from which to start the generation and layout of elements.
This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).
public:
property int RecommendedAnchorIndex { int get(); };
int RecommendedAnchorIndex();
public int RecommendedAnchorIndex { get; }
Public ReadOnly Property RecommendedAnchorIndex As Integer
Property Value
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.