Skip to main content
StackPanelMeasureOverride Method
 

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

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

Syntax
protected override Size MeasureOverride(
	Size constraint
)
protected:
virtual Size MeasureOverride(
	Size constraint
) override
override MeasureOverride : 
        constraint:Size -> Size
Protected Overrides Function MeasureOverride (
	constraint As Size
) As Size

Parameters

constraint
Type:

An upper limit Size that should not be exceeded.

Return Value

Type:

The Size that represents the desired size of the element.

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