ComponentOne Basic Library for WPF and Silverlight
CommandBinding Constructor(ICommand,ExecutedRoutedEventHandler,CanExecuteRoutedEventHandler)


C1.Silverlight Namespace > CommandBinding Class > CommandBinding Constructor : CommandBinding Constructor(ICommand,ExecutedRoutedEventHandler,CanExecuteRoutedEventHandler)
The command.
The handler for the Executed event on the new command.
The handler for the CanExecute event on the new command.
Initializes a new instance of the CommandBinding class by using the specified System.Windows.Input.ICommand and the specified Executed and CanExecute even handlers.
Syntax
'Declaration
 
Public Function New( _
   ByVal command As System.Windows.Input.ICommand, _
   ByVal executed As ExecutedRoutedEventHandler, _
   ByVal canExecute As CanExecuteRoutedEventHandler _
)
'Usage
 
Dim command As System.Windows.Input.ICommand
Dim executed As ExecutedRoutedEventHandler
Dim canExecute As CanExecuteRoutedEventHandler
 
Dim instance As New CommandBinding(command, executed, canExecute)
public CommandBinding( 
   System.Windows.Input.ICommand command,
   ExecutedRoutedEventHandler executed,
   CanExecuteRoutedEventHandler canExecute
)

Parameters

command
The command.
executed
The handler for the Executed event on the new command.
canExecute
The handler for the CanExecute event on the new command.
See Also

Reference

CommandBinding Class
CommandBinding Members
Overload List