Share via


ToolCommand Class

Acts as a command identifier and as a unified way of invoking a particular command.

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

Syntax

'Declaration
Public Class ToolCommand _
    Implements ICommand
'Usage
Dim instance As ToolCommand
public class ToolCommand : ICommand
public ref class ToolCommand : ICommand
public class ToolCommand implements ICommand

Remarks

The ToolCommand class is similar to the RoutedCommand class in Windows Presentation Foundation (WPF). When the Execute or CanExecute method is called, the binding tree is searched for command bindings that are bound to this command. The event handlers specified by the command bindings are then executed.

Inheritance Hierarchy

System.Object
  Microsoft.Windows.Design.Interaction.ToolCommand

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

ToolCommand Members

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Tool Architecture

Understanding WPF Designer Extensibility