MeasureOverride Method

Control.MeasureOverride Method (Size)

 

Called to remeasure a control.

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

protected override Size MeasureOverride(
	Size constraint
)

Parameters

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
Show:
© 2016 Microsoft