Skip to main content
ControlMeasureOverride Method
 

Called to remeasure a control.

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

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:

The maximum size that the method can return.

Return Value

Type:

The size of the control, up to the maximum specified by constraint.

The default control measurement only measures the first visual child.

.NET Framework
Available since 3.0
Return to top