Share via


GestureData.FromEventArgs Method (ExecutedToolEventArgs)

Provides a GestureData object 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 GestureData
public static GestureData FromEventArgs(
    ExecutedToolEventArgs e
)
public:
static GestureData^ FromEventArgs(
    ExecutedToolEventArgs^ e
)
static member FromEventArgs : 
        e:ExecutedToolEventArgs -> GestureData 
public static function FromEventArgs(
    e : ExecutedToolEventArgs
) : GestureData

Parameters

Return Value

Type: Microsoft.Windows.Design.Interaction.GestureData
The GestureData 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 GestureData object when the command is invoked by a gesture.

.NET Framework Security

See Also

Reference

GestureData Class

FromEventArgs Overload

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Understanding WPF Designer Extensibility