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
- adorner
Type: System.Windows.UIElement
The UIElement from which to read the Task attached property.
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
- 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