CommandBinding Constructor (ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the CommandBinding class by using the specified ICommand and the specified Executed and CanExecute event handlers.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

new : 
        command:ICommand *
        executed:ExecutedRoutedEventHandler *
        canExecute:CanExecuteRoutedEventHandler -> CommandBinding

Parameters

command
Type: System.Windows.Input.ICommand

The command to base the new RoutedCommand on.

executed
Type: System.Windows.Input.ExecutedRoutedEventHandler

The handler for the Executed event on the new RoutedCommand.

canExecute
Type: System.Windows.Input.CanExecuteRoutedEventHandler

The handler for the CanExecute event on the new RoutedCommand.

.NET Framework
Available since 3.0
Return to top
Show: