The CommandBinding type exposes the following members.
Constructors
Name | Description | |
---|---|---|
CommandBinding()()()() |
Initializes a new instance of the CommandBinding class.
|
|
CommandBinding(ICommand) |
Initializes a new instance of the CommandBinding class by using the specified ICommand.
|
|
CommandBinding(ICommand, ExecutedRoutedEventHandler) |
Initializes a new instance of the CommandBinding class by using the specified
ICommand and the specified Executed event handler.
|
|
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 | |
---|---|---|
Equals |
Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
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.) |
|
GetHashCode |
Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType |
Gets the Type of the current instance. (Inherited from Object.) |
|
MemberwiseClone |
Creates a shallow copy of the current Object. (Inherited from Object.) |
|
ToString |
Returns a string that represents the current object. (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
Command |
Gets or sets the ICommand associated with this CommandBinding.
|
Events
Name | Description | |
---|---|---|
CanExecute |
Occurs when the command associated with this CommandBinding initiates a
check to determine whether the command can be executed on the command target.
|
|
Executed |
Occurs when the command associated with this CommandBinding executes.
|
|
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.
|
|
PreviewExecuted |
Occurs when the command associated with this CommandBinding executes.
|