Share via


AdornerLayout.EvaluateLayout Method

Gets a value indicating whether the adorner remains in the UI tree.

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

Syntax

'Declaration
Public MustOverride Function EvaluateLayout ( _
    view As DesignerView, _
    adorner As UIElement _
) As Boolean
public abstract bool EvaluateLayout(
    DesignerView view,
    UIElement adorner
)
public:
virtual bool EvaluateLayout(
    DesignerView^ view, 
    UIElement^ adorner
) abstract
abstract EvaluateLayout : 
        view:DesignerView * 
        adorner:UIElement -> bool 
public abstract function EvaluateLayout(
    view : DesignerView, 
    adorner : UIElement
) : boolean

Parameters

Return Value

Type: System.Boolean
true if adorner should remain in the UI tree. false if one or more visuals it is associated with are no longer part of the UI tree.

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

The EvaluateLayout method examines the view, model, or other related items the adorner requires and computes whether the adorner’s Measure or Arrange methods should be invalidated.

Note

Because this method is called very frequently, you should make it as fast as possible.

.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