AdornerLayer.MeasureOverride Method (Size)

 

Measures the size required for child elements and determines a size for the AdornerLayer.

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

protected override Size MeasureOverride(
	Size constraint
)

Parameters

constraint
Type: System.Windows.Size

Unused.

Return Value

Type: System.Windows.Size

This method always returns a Size of (0,0).

The AdornerLayer should be the same size as its parent and consume no layout space.

This method overrides MeasureOverride.

.NET Framework
Available since 3.0
Return to top
Show: