Share via


MouseGestureData.FromEventArgs Method (CanExecuteToolEventArgs)

Provides a MouseGestureData object from an CanExecuteToolEventArgs 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 CanExecuteToolEventArgs _
) As MouseGestureData
public static MouseGestureData FromEventArgs(
    CanExecuteToolEventArgs e
)
public:
static MouseGestureData^ FromEventArgs(
    CanExecuteToolEventArgs^ e
)
static member FromEventArgs : 
        e:CanExecuteToolEventArgs -> MouseGestureData 
public static function FromEventArgs(
    e : CanExecuteToolEventArgs
) : MouseGestureData

Parameters

Return Value

Type: Microsoft.Windows.Design.Interaction.MouseGestureData
The MouseGestureData object contained in the Parameter property of the CanExecuteToolEventArgs 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 MouseGestureData object when the command is invoked by a gesture.

.NET Framework Security

See Also

Reference

MouseGestureData Class

FromEventArgs Overload

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Understanding WPF Designer Extensibility