CommandBinding
Associates an ICommand with handlers used by diagram command processing.
Definition
Namespace:Telerik.WinControls.Diagram.Input
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
public class CommandBinding
Inheritance: objectCommandBinding
Constructors
Initializes a new instance of this command binding.
public CommandBinding()
Initializes a command binding for the specified command and subscribes the supplied handlers when they are non-null.
public CommandBinding(ICommand command, ExecutedRoutedEventHandler executed, CanExecuteRoutedEventHandler canExecute)
The command associated with this binding.
executedExecutedRoutedEventHandlerThe handler subscribed to the Executed event.
canExecuteCanExecuteRoutedEventHandlerThe handler subscribed to the CanExecute event.
Exceptions: ArgumentNullExceptioncommand is null.
Initializes a command binding for the specified command and subscribes the executed handler when it is non-null.
public CommandBinding(ICommand command, ExecutedRoutedEventHandler executed)
The command associated with this binding.
executedExecutedRoutedEventHandlerThe handler subscribed to the Executed event.
Exceptions: ArgumentNullExceptioncommand is null.
Initializes a command binding for the specified command.
public CommandBinding(ICommand command)
The command associated with this binding.
Exceptions: ArgumentNullExceptioncommand is null.
Properties
Gets the command whose execution and availability are handled by this binding.
public ICommand Command { get; set; }
The assigned value is null.
Events
Occurs when diagram command processing checks whether the associated command can execute.
public event CanExecuteRoutedEventHandler CanExecute
Occurs when diagram command processing executes the associated command.
public event ExecutedRoutedEventHandler Executed