CommandBinding Constructor (ICommand^, ExecutedRoutedEventHandler^, CanExecuteRoutedEventHandler^)
.NET Framework (current version)
Initializes a new instance of the CommandBinding class by using the specified ICommand and the specified Executed and CanExecute event handlers.
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
Available since 3.0
Show: