The CommandBinding type exposes the following members.

Constructors

  Name Description
Public method CommandBinding()()()()
Initializes a new instance of the CommandBinding class.
Public method CommandBinding(ICommand)
Initializes a new instance of the CommandBinding class by using the specified ICommand.
Public method CommandBinding(ICommand, ExecutedRoutedEventHandler)
Initializes a new instance of the CommandBinding class by using the specified ICommand and the specified Executed event handler.
Public method CommandBinding(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)
Initializes a new instance of the CommandBinding class by using the specified ICommand and the specified Executed and CanExecute even handlers.

Methods

  Name Description
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
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 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 a string that represents the current object.
(Inherited from Object.)

Properties

  Name Description
Public property Command
Gets or sets the ICommand associated with this CommandBinding.

Events

  Name Description
Public event CanExecute
Occurs when the command associated with this CommandBinding initiates a check to determine whether the command can be executed on the command target.
Public event Executed
Occurs when the command associated with this CommandBinding executes.
Public event PreviewCanExecute
Occurs when the command associated with this CommandBinding initiates a check to determine whether the command can be executed on the current command target.
Public event PreviewExecuted
Occurs when the command associated with this CommandBinding executes.

See Also