New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinForms.SyntaxEditor.Commands

Assembly:Telerik.WinControls.SyntaxEditor.dll

Syntax:

C#
public class CommandBinding

Inheritance: objectCommandBinding

Constructors

Initializes a new instance of the CommandBinding class.

C#
public CommandBinding()

Initializes a new instance of the CommandBinding class by using the specified ICommand and the specified Executed and CanExecute even handlers.

C#
public CommandBinding(ICommand command, ExecutedRoutedEventHandler executed, CanExecuteRoutedEventHandler canExecute)
Parameters:commandICommand

The command to base the new RoutedCommand on.

executedExecutedRoutedEventHandler

The handler for the Executed event on the new RoutedCommand.

canExecuteCanExecuteRoutedEventHandler

The handler for the CanExecute event on the new RoutedCommand.

Initializes a new instance of the CommandBinding class by using the specified ICommand and the specified Executed event handler.

C#
public CommandBinding(ICommand command, ExecutedRoutedEventHandler executed)
Parameters:commandICommand

The command to base the new RoutedCommand on.

executedExecutedRoutedEventHandler

The handler for the Executed event on the new RoutedCommand.

Initializes a new instance of the CommandBinding class by using the specified ICommand.

C#
public CommandBinding(ICommand command)
Parameters:commandICommand

The command to base the new RoutedCommand on.

Properties

C#
public ICommand Command { get; set; }

Events

Occurs when the command associated with this CommandBinding initiates a check to determine whether the command can be executed on the command target.

C#
public event CanExecuteRoutedEventHandler CanExecute

Occurs when the command associated with this CommandBinding executes.

C#
public event ExecutedRoutedEventHandler Executed

Occurs when the command associated with this CommandBinding initiates a check to determine whether the command can be executed on the current command target.

C#
public event CanExecuteRoutedEventHandler PreviewCanExecute

Occurs when the command associated with this CommandBinding executes.

C#
public event ExecutedRoutedEventHandler PreviewExecuted