Class CommandBinding
Binds a RoutedCommand to the event handlers that implement the command.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
public class CommandBinding : Object
Constructors
CommandBinding()
CommandBinding(ICommand)
Initializes a new instance of the CommandBinding class.
Declaration
public CommandBinding(ICommand command)
Parameters
System.Windows.Input.ICommand
command
The command. |
CommandBinding(ICommand, ExecutedRoutedEventHandler)
Initializes a new instance of the CommandBinding class.
Declaration
public CommandBinding(ICommand command, ExecutedRoutedEventHandler executed)
Parameters
System.Windows.Input.ICommand
command
The command. |
ExecutedRoutedEventHandler
executed
The executed. |
CommandBinding(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)
Initializes a new instance of the CommandBinding class.
Declaration
public CommandBinding(ICommand command, ExecutedRoutedEventHandler executed, CanExecuteRoutedEventHandler canExecute)
Parameters
System.Windows.Input.ICommand
command
The command. |
ExecutedRoutedEventHandler
executed
The executed. |
CanExecuteRoutedEventHandler
canExecute
The can execute. |
Properties
Command
Gets or sets the ICommand associated with this CommandBinding.
Declaration
public ICommand Command { get; set; }
Property Value
System.Windows.Input.ICommand
The command. |
Methods
add_CanExecute(CanExecuteRoutedEventHandler)
Declaration
public void add_CanExecute(CanExecuteRoutedEventHandler value)
Parameters
CanExecuteRoutedEventHandler
value
|
add_Executed(ExecutedRoutedEventHandler)
Declaration
public void add_Executed(ExecutedRoutedEventHandler value)
Parameters
ExecutedRoutedEventHandler
value
|
add_PreviewCanExecute(CanExecuteRoutedEventHandler)
Declaration
public void add_PreviewCanExecute(CanExecuteRoutedEventHandler value)
Parameters
CanExecuteRoutedEventHandler
value
|
add_PreviewExecuted(ExecutedRoutedEventHandler)
Declaration
public void add_PreviewExecuted(ExecutedRoutedEventHandler value)
Parameters
ExecutedRoutedEventHandler
value
|
remove_CanExecute(CanExecuteRoutedEventHandler)
Declaration
public void remove_CanExecute(CanExecuteRoutedEventHandler value)
Parameters
CanExecuteRoutedEventHandler
value
|
remove_Executed(ExecutedRoutedEventHandler)
Declaration
public void remove_Executed(ExecutedRoutedEventHandler value)
Parameters
ExecutedRoutedEventHandler
value
|
remove_PreviewCanExecute(CanExecuteRoutedEventHandler)
Declaration
public void remove_PreviewCanExecute(CanExecuteRoutedEventHandler value)
Parameters
CanExecuteRoutedEventHandler
value
|
remove_PreviewExecuted(ExecutedRoutedEventHandler)
Declaration
public void remove_PreviewExecuted(ExecutedRoutedEventHandler value)
Parameters
ExecutedRoutedEventHandler
value
|
Events
CanExecute
Occurs when the command associated with this CommandBinding initiates a check to determine whether the command can be executed on the command target.
Declaration
public event CanExecuteRoutedEventHandler CanExecute
Event Type
CanExecuteRoutedEventHandler
|
Executed
Occurs when the command associated with this CommandBinding executes.
Declaration
public event ExecutedRoutedEventHandler Executed
Event Type
ExecutedRoutedEventHandler
|
PreviewCanExecute
Occurs when the command associated with this CommandBinding initiates a check to determine whether the command can be executed on the current command target.
Declaration
public event CanExecuteRoutedEventHandler PreviewCanExecute
Event Type
CanExecuteRoutedEventHandler
|
PreviewExecuted
Occurs when the command associated with this CommandBinding executes.
Declaration
public event ExecutedRoutedEventHandler PreviewExecuted
Event Type
ExecutedRoutedEventHandler
|