Share via


AdornerPanel.SetTask Method

Writes the Task attached property to the specified element.

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

Syntax

'Declaration
Public Shared Sub SetTask ( _
    adorner As UIElement, _
    value As Task _
)
public static void SetTask(
    UIElement adorner,
    Task value
)
public:
static void SetTask(
    UIElement^ adorner, 
    Task^ value
)
static member SetTask : 
        adorner:UIElement * 
        value:Task -> unit 
public static function SetTask(
    adorner : UIElement, 
    value : Task
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

A Task is a related set of commands that may be bound to any part of an adorner.

.NET Framework Security

See Also

Reference

AdornerPanel Class

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Adorner Architecture

Feature Providers and Feature Connectors