Adorner.MeasureOverride Method (Size)

 

Implements any custom measuring behavior for the adorner.

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

protected override Size MeasureOverride(
	Size constraint
)

Parameters

constraint
Type: System.Windows.Size

A size to constrain the adorner to.

Return Value

Type: System.Windows.Size

A Size object representing the amount of layout space needed by the adorner.

By default, an adorner will size to match the adorned element.

This method overrides MeasureOverride.

.NET Framework
Available since 3.0
Return to top
Show: