The CommandBinding type exposes the following members.

Constructors

  NameDescription
Public methodCommandBinding()()()()
Initializes a new instance of the CommandBinding class.
Public methodCommandBinding(ICommand, ExecutedRoutedEventHandler)
Initializes a new instance of the CommandBinding class.
Public methodCommandBinding(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)
Initializes a new instance of the CommandBinding class.

Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties

  NameDescription
Public propertyCommand
Gets or sets the command for the binding.

Events

  NameDescription
Public eventCanExecute
Occurs when a query is made whether the command can be executed.
Public eventExecuted
Occurs when the command is executed.

See Also