CommandBinding Constructor (ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)

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)

Public Sub New ( _
	command As ICommand, _
	executed As ExecutedRoutedEventHandler, _
	canExecute As CanExecuteRoutedEventHandler _


Type: System.Windows.Input.ICommand

The command to base the new RoutedCommand on.

Type: System.Windows.Input.ExecutedRoutedEventHandler

The handler for the Executed event on the new RoutedCommand.

Type: System.Windows.Input.CanExecuteRoutedEventHandler

The handler for the CanExecute 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
© 2015 Microsoft