Share via


AdornerPanel.GetTask Method

Reads the Task attached property from the specified element.

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

Syntax

'Declaration
Public Shared Function GetTask ( _
    adorner As UIElement _
) As Task
public static Task GetTask(
    UIElement adorner
)
public:
static Task^ GetTask(
    UIElement^ adorner
)
static member GetTask : 
        adorner:UIElement -> Task 
public static function GetTask(
    adorner : UIElement
) : Task

Parameters

Return Value

Type: Microsoft.Windows.Design.Interaction.Task
A Task that represents the task associated with adorner.

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

Task

Other Resources

Adorner Architecture

Feature Providers and Feature Connectors