Windows Dev Center

VirtualizingStackPanel.MeasureOverride Method

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

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

protected override Size MeasureOverride(
	Size constraint
)

Parameters

constraint
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. VirtualizingStackPanel 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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2015 Microsoft