Share via


VirtualizingLayoutContext.LayoutOrigin Property

Definition

Gets or sets the origin point for the estimated content size.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

public:
 property Point LayoutOrigin { Point get(); void set(Point value); };
Point LayoutOrigin();

void LayoutOrigin(Point value);
public Point LayoutOrigin { get; set; }
Public Property LayoutOrigin As Point

Property Value

The origin point for the estimated content size.

Remarks

LayoutOrigin is used by virtualizing layouts that rely on estimations when determining the size and position of content. It allows the layout to fix-up the estimated origin of the content as it changes due to on-going estimation or potentially identifying the actual size to use. For example, it’s possible that as a user is scrolling back to the top of the content that the layout's estimates for the content size that it reports as part of its MeasureOverride become increasingly accurate. If the predicted position of the content does not already match the previously predicted position (for example, if the size of the elements ends up being smaller than previously thought), then the layout can indicate a new origin. The viewport provided to the layout on subsequent passes will take into account the adjusted origin.

Applies to