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
- view
Type: Microsoft.Windows.Design.Interaction.DesignerView
The designer view that is evaluating the layout.
- adorner
Type: System.Windows.UIElement
The adorner to be evaluated.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Interaction Namespace
PrimarySelectionAdornerProvider