Editar

Compartilhar via


VirtualizingStackPanel.MeasureOverride(Size) Method

Definition

Measures the child elements of a VirtualizingStackPanel in anticipation of arranging them during the ArrangeOverride(Size) pass.

protected:
 override System::Windows::Size MeasureOverride(System::Windows::Size constraint);
protected override System.Windows.Size MeasureOverride (System.Windows.Size constraint);
override this.MeasureOverride : System.Windows.Size -> System.Windows.Size
Protected Overrides Function MeasureOverride (constraint As Size) As Size

Parameters

constraint
Size

An upper limit Size that should not be exceeded.

Returns

The Size that represents the desired size of the element.

Remarks

When scrolling, VirtualizingStackPanel does not grow in layout size, but effectively adds its descendants on a z-plane, which is normally clipped by a parent element (typically a ScrollContentPresenter) to the size of the stack.

Applies to

See also