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:
CommandBinding(
	ICommand^ command,
	ExecutedRoutedEventHandler^ executed,
	CanExecuteRoutedEventHandler^ canExecute
)

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: