[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Converters.CommandAdapter

CommandAdapter Class

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.

Inheritance
CommandAdapter
Implements
Namespace: GrapeCity.ActiveReports.Converters
Assembly: MESCIUS.ActiveReports.Viewer.Wpf.dll
Syntax
public class CommandAdapter : Freezable, ICommand

Constructors

Name Description
CommandAdapter()

Initializes a new instance of the CommandAdapter class.

CommandAdapter(ICommand)

Initializes a new instance of the CommandAdapter class.

Fields

Name Description
CommandProperty

Identifies the Command dependency property.

Properties

Name Description
Command

Gets or sets the command to adapt.

Methods

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.

Events

Name Description
CanExecuteChanged

Occurs when changes occur that affect whether the command should execute.