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)

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

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

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