CommandBinding
Associates an ICommand with callback events for execution and availability.
Callbacks can be subscribed through the events, but the current binding implementation does not raise them.
Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RadSpreadsheet.dll
Syntax:
public class CommandBinding
Inheritance: objectCommandBinding
Constructors
Initializes an empty binding; set Command before using it.
public CommandBinding()
Initializes a binding for the specified command and subscribes execution and availability callbacks.
public CommandBinding(ICommand command, ExecutedRoutedEventHandler executed, CanExecuteRoutedEventHandler canExecute)
The command to associate with the binding.
executedExecutedRoutedEventHandlerThe callback to subscribe to Executed.
canExecuteCanExecuteRoutedEventHandlerThe callback to subscribe to CanExecute.
Exceptions: ArgumentNullExceptioncommand is null.
Initializes a binding for the specified command and subscribes an execution callback.
public CommandBinding(ICommand command, ExecutedRoutedEventHandler executed)
The command to associate with the binding.
executedExecutedRoutedEventHandlerThe callback to subscribe to Executed.
Exceptions: ArgumentNullExceptioncommand is null.
Initializes a binding for the specified command.
public CommandBinding(ICommand command)
The command to associate with the binding.
Exceptions: ArgumentNullExceptioncommand is null.
Properties
Gets or sets the command associated with this binding.
public ICommand Command { get; set; }
The assigned command is null.
Events
Declares the callback event for command-availability queries; this implementation does not raise it.
public event CanExecuteRoutedEventHandler CanExecute
Declares the callback event for command execution; this implementation does not raise it.
public event ExecutedRoutedEventHandler Executed
Declares the preview callback event for command-availability queries; this implementation does not raise it.
public event CanExecuteRoutedEventHandler PreviewCanExecute
Declares the preview callback event for command execution; this implementation does not raise it.
public event ExecutedRoutedEventHandler PreviewExecuted