Delen via


ToolCommand Members

Include Protected Members
Include Inherited Members

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

The ToolCommand type exposes the following members.

Constructors

 

Name

Description

Public method

ToolCommand

Overloaded. Initializes a new instance of the ToolCommand class.

Top

Methods

 

Name

Description

Public method

CanExecute

Locates a command binding for the command and asks if it is enabled.

Public method

Equals

Determines whether the specified Object is equal to the current Object. (Inherited from Object.)

Public method

Execute

Locates a command binding for the command and executes it.

Protected method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

Public method

GetHashCode

Serves as a hash function for a particular type. (Inherited from Object.)

Public method

GetType

Gets the type of the current instance. (Inherited from Object.)

Protected method

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

Public method

ToString

Returns the name of this command. (Overrides Object.ToString().)

Top

Properties

 

Name

Description

Public property

Name

Gets the name of this command.

Top

Events

 

Name

Description

Public event

CanExecuteChanged

Occurs when the status of this command changes.

Top

Explicit Interface Implementations

 

Name

Description

Explicit interface implemetationPrivate method

ICommand.CanExecute

For a description of this member, see ICommand.CanExecute.

Explicit interface implemetationPrivate method

ICommand.Execute

For a description of this member, see ICommand.Execute.

Top

See Also

Reference

ToolCommand Class

Microsoft.Windows.Design.Interaction Namespace