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

Provides the base command implementation for this compatibility layer.

The default execution and availability methods throw NotImplementedException, and CanExecuteChanged is never raised.

Definition

Namespace:Telerik.WinControls.UI.Utilities.PlatformSpecific

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

C#
public class RoutedCommand : ICommand

Inheritance: objectRoutedCommand

Derived Classes: RoutedUICommand

Implements: ICommand

Constructors

C#
public RoutedCommand()

Methods

Attempts to determine whether this command can execute.

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

Command-specific data.

Returns:

bool

The command's availability.

Exceptions: NotImplementedException

Availability checking is not implemented.

Implements: ICommand.CanExecute(object)

Attempts to execute this command.

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

Command-specific data.

Exceptions: NotImplementedException

Command execution is not implemented.

Implements: ICommand.Execute(object)

Events

Declares the command-availability notification; this implementation does not raise the event.

C#
public event EventHandler CanExecuteChanged

Implements: ICommand.CanExecuteChanged