Windows Dev Center

The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Control.MeasureOverride Method (Size)


Called to remeasure a control.

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

protected override Size MeasureOverride(
	Size constraint


Type: System.Windows.Size

The maximum size that the method can return.

Return Value

Type: System.Windows.Size

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
© 2015 Microsoft