Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Provides a simple utility that returns a DragGestureData from an ExecutedToolEventArgs object.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Shared Function FromEventArgs ( _
e As ExecutedToolEventArgs _
) As DragGestureData
public static DragGestureData FromEventArgs(
ExecutedToolEventArgs e
)
public:
static DragGestureData^ FromEventArgs(
ExecutedToolEventArgs^ e
)
static member FromEventArgs :
e:ExecutedToolEventArgs -> DragGestureData
public static function FromEventArgs(
e : ExecutedToolEventArgs
) : DragGestureData
Parameters
- e
Type: Microsoft.Windows.Design.Interaction.ExecutedToolEventArgs
The ExecutedToolEventArgs object passed into a command callback.
Return Value
Type: Microsoft.Windows.Design.Interaction.DragGestureData
The DragGestureData object that is contained in the Parameter property of the ExecutedToolEventArgs object.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | e is nulla null reference (Nothing in Visual Basic). |
Remarks
Most commands are implemented as ExecuteEventHandler callbacks. These callbacks have a single property called "data" that represents the data of the command. This data is returned as a DragGestureData object when the command is invoked by a gesture.
.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