VirtualizingStackPanel.MeasureOverride Method (Size)


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

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

Protected Overrides Function MeasureOverride (
	constraint As Size
) As Size


Type: System.Windows.Size

An upper limit Size that should not be exceeded.

Return Value

Type: System.Windows.Size

The Size that represents the desired size of the element.

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.

.NET Framework
Available since 3.0
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Return to top