ClassCommandBinding
Binds a RoutedCommand to the event handlers that implement the command.
Definition
Namespace:Telerik.UI.Xaml.Controls
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public class CommandBinding
Inheritance: objectCommandBinding
Constructors
CommandBinding()
Initializes a new instance of the CommandBinding class.
Declaration
public CommandBinding()
CommandBinding(ICommand)
Initializes a new instance of the CommandBinding class.
Declaration
public CommandBinding(ICommand command)
Parameters
command
The command.
CommandBinding(ICommand, ExecutedRoutedEventHandler)
Initializes a new instance of the CommandBinding class.
Declaration
public CommandBinding(ICommand command, ExecutedRoutedEventHandler executed)
Parameters
command
The command.
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
command
The command.
executed
The executed.
canExecute
The can execute.
Properties
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 Value
Executed
Occurs when the command associated with this CommandBinding executes.
Declaration
public event ExecutedRoutedEventHandler Executed
Event Value
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 Value
PreviewExecuted
Occurs when the command associated with this CommandBinding executes.
Declaration
public event ExecutedRoutedEventHandler PreviewExecuted
Event Value