New to Telerik UI for WinForms? Start 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 class.

C#
public CommandBinding()

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

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

The command to base the new on.

executedExecutedRoutedEventHandler

The handler for the event on the new .

canExecuteCanExecuteRoutedEventHandler

The handler for the event on the new .

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

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

The command to base the new on.

executedExecutedRoutedEventHandler

The handler for the event on the new .

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

C#
public CommandBinding(ICommand command)
Parameters:commandICommand

The command to base the new on.

Properties

C#
public ICommand Command { get; set; }

Events

Occurs when the command associated with this 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 executes.

C#
public event ExecutedRoutedEventHandler Executed

Occurs when the command associated with this 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 executes.

C#
public event ExecutedRoutedEventHandler PreviewExecuted