New to Telerik UI for WinForms? Start a free 30-day trial

Base command type used by diagram command bindings; its execution methods must be implemented by a derived type.

Definition

Namespace:Telerik.WinControls.Diagram.Input

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public class RoutedCommand : ICommand

Inheritance: objectRoutedCommand

Derived Classes: RoutedUICommand

Implements: ICommand

Constructors

C#
public RoutedCommand()

Methods

Checks whether this command can execute. The base implementation is not implemented.

C#
public virtual bool CanExecute(object parameter)
Parameters:parameterobject

Command-specific data for the availability check.

Returns:

bool

The result supplied by an override.

Exceptions: NotImplementedException

The base implementation is called without an override.

Implements: ICommand.CanExecute(object)

Executes this command. The base implementation is not implemented.

C#
public virtual void Execute(object parameter)
Parameters:parameterobject

Command-specific data for the operation.

Exceptions: NotImplementedException

The base implementation is called without an override.

Implements: ICommand.Execute(object)

Events

Occurs when command availability changes. This base class does not raise the event.

C#
public event EventHandler CanExecuteChanged

Implements: ICommand.CanExecuteChanged