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)

Syntax

'Declaration
Protected Overrides Function MeasureOverride ( _
    constraint As Size _
) As Size
protected override Size MeasureOverride(
    Size constraint
)

Parameters

Return Value

Type: System.Windows.Size
The Size that represents the desired size of the element.

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

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

Platforms

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