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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft