CommandBinding
Definition
Namespace:Telerik.WinControls.Diagram.Input
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
public class CommandBinding
Inheritance: objectCommandBinding
Constructors
Initializes a new instance of the CommandBinding class.
public CommandBinding()
Initializes a new instance of the CommandBinding class by using the specified ICommand and the specified Executed and CanExecute even handlers.
public CommandBinding(ICommand command, ExecutedRoutedEventHandler executed, CanExecuteRoutedEventHandler canExecute)
The command to base the new RoutedCommand on.
executedExecutedRoutedEventHandlerThe handler for the Executed event on the new RoutedCommand.
canExecuteCanExecuteRoutedEventHandlerThe 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.
public CommandBinding(ICommand command, ExecutedRoutedEventHandler executed)
The command to base the new RoutedCommand on.
executedExecutedRoutedEventHandlerThe handler for the Executed event on the new RoutedCommand.
Initializes a new instance of the CommandBinding class by using the specified ICommand.
public CommandBinding(ICommand command)
The command to base the new RoutedCommand on.
Properties
Events
Occurs when the command associated with this CommandBinding initiates a check to determine whether the command can be executed on the command target.
public event CanExecuteRoutedEventHandler CanExecute
Occurs when the command associated with this CommandBinding executes.
public event ExecutedRoutedEventHandler Executed