Share via


AdornerLayout.Measure Method

Performs the layout measurement on the specified adorner.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public MustOverride Sub Measure ( _
    adorner As UIElement, _
    constraint As Size _
)
public abstract void Measure(
    UIElement adorner,
    Size constraint
)
public:
virtual void Measure(
    UIElement^ adorner, 
    Size constraint
) abstract
abstract Measure : 
        adorner:UIElement * 
        constraint:Size -> unit 
public abstract function Measure(
    adorner : UIElement, 
    constraint : Size
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

adorner is nulla null reference (Nothing in Visual Basic).

Remarks

The Measure method computes the size the adorner and passes it to the adorner’s Measure method.

.NET Framework Security

See Also

Reference

AdornerLayout Class

Microsoft.Windows.Design.Interaction Namespace

AdornerPanel

PrimarySelectionAdornerProvider

Other Resources

Walkthrough: Creating a Design-time Adorner

Adorner Architecture