CommandBinding Constructor (ICommand, ExecutedRoutedEventHandler)

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

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

new : 
        command:ICommand * 
        executed:ExecutedRoutedEventHandler -> 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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft