ComponentOne Basic Library for UWP
C1.UWP Assembly / C1.Xaml 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.

In This Topic
    CommandBinding Constructor(ICommand,ExecutedRoutedEventHandler,CanExecuteRoutedEventHandler)
    In This Topic
    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 _
    )
    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