Export (0) Print
Expand All

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.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2015 Microsoft