[]
Represents a class that facilitates associating a key binding in XAML markup to a GrapeCity's Command defined in a View Model by exposing a Command dependency property. The class derives from Freezable to work around a limitation in WPF when data-binding from XAML.
public class CommandAdapter : Freezable, ICommand
| Name | Description |
|---|---|
| CommandAdapter() | Initializes a new instance of the CommandAdapter class. |
| CommandAdapter(ICommand) | Initializes a new instance of the CommandAdapter class. |
| Name | Description |
|---|---|
| CommandProperty | Identifies the Command dependency property. |
| Name | Description |
|---|---|
| Command | Gets or sets the command to adapt. |
| Name | Description |
|---|---|
| CanExecute(object) | Defines the method that determines whether the command can execute in its current state. |
| CreateInstanceCore() | Creates a new instance of the CommandAdapter class. |
| Execute(object) | Defines the method to be called when the command is invoked. |
| Name | Description |
|---|---|
| CanExecuteChanged | Occurs when changes occur that affect whether the command should execute. |