Share via


ToolCommand.Execute Method

Locates a command binding for the command and executes it.

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

Syntax

'Declaration
Public Sub Execute ( _
    data As GestureData _
)
public void Execute(
    GestureData data
)
public:
void Execute(
    GestureData^ data
)
member Execute : 
        data:GestureData -> unit 
public function Execute(
    data : GestureData
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

data is nulla null reference (Nothing in Visual Basic).

ArgumentException

data.Context is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

ToolCommand Class

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Tool Architecture

Understanding WPF Designer Extensibility