CommandBinding Constructor (ICommand^, ExecutedRoutedEventHandler^)

 
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 event handler.

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

public:
CommandBinding(
	ICommand^ command,
	ExecutedRoutedEventHandler^ executed
)

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
Available since 3.0
Return to top
Show: