Share via


AdornerProperties.SetLayout Method

Sets the layout for the specified adorner.

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

Syntax

'Declaration
Public Shared Sub SetLayout ( _
    adorner As DependencyObject, _
    value As AdornerLayout _
)
public static void SetLayout(
    DependencyObject adorner,
    AdornerLayout value
)
public:
static void SetLayout(
    DependencyObject^ adorner, 
    AdornerLayout^ value
)
static member SetLayout : 
        adorner:DependencyObject * 
        value:AdornerLayout -> unit 
public static function SetLayout(
    adorner : DependencyObject, 
    value : AdornerLayout
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

The value parameter specifies an AdornerLayout that is used to arrange the adorner with regard to its model or view. The default value returns a layout that keeps the adorner above the view in the z-order.

.NET Framework Security

See Also

Reference

AdornerProperties Class

Microsoft.Windows.Design.Interaction Namespace

AdornerLayout

AdornerPanel

Other Resources

Walkthrough: Creating a Design-time Adorner

Adorner Architecture