แก้ไข

แชร์ผ่าน


CommandBinding Constructors

Definition

Initializes a new instance of the CommandBinding class.

Overloads

CommandBinding()

Initializes a new instance of the CommandBinding class.

CommandBinding(ICommand)

Initializes a new instance of the CommandBinding class by using the specified ICommand.

CommandBinding(ICommand, ExecutedRoutedEventHandler)

Initializes a new instance of the CommandBinding class by using the specified ICommand and the specified Executed event handler.

CommandBinding(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)

Initializes a new instance of the CommandBinding class by using the specified ICommand and the specified Executed and CanExecute event handlers.

CommandBinding()

Initializes a new instance of the CommandBinding class.

public:
 CommandBinding();
public CommandBinding ();
Public Sub New ()

See also

Applies to

CommandBinding(ICommand)

Initializes a new instance of the CommandBinding class by using the specified ICommand.

public:
 CommandBinding(System::Windows::Input::ICommand ^ command);
public CommandBinding (System.Windows.Input.ICommand command);
new System.Windows.Input.CommandBinding : System.Windows.Input.ICommand -> System.Windows.Input.CommandBinding
Public Sub New (command As ICommand)

Parameters

command
ICommand

The command to base the new RoutedCommand on.

Applies to

CommandBinding(ICommand, ExecutedRoutedEventHandler)

Initializes a new instance of the CommandBinding class by using the specified ICommand and the specified Executed event handler.

public:
 CommandBinding(System::Windows::Input::ICommand ^ command, System::Windows::Input::ExecutedRoutedEventHandler ^ executed);
public CommandBinding (System.Windows.Input.ICommand command, System.Windows.Input.ExecutedRoutedEventHandler executed);
new System.Windows.Input.CommandBinding : System.Windows.Input.ICommand * System.Windows.Input.ExecutedRoutedEventHandler -> System.Windows.Input.CommandBinding
Public Sub New (command As ICommand, executed As ExecutedRoutedEventHandler)

Parameters

command
ICommand

The command to base the new RoutedCommand on.

executed
ExecutedRoutedEventHandler

The handler for the Executed event on the new RoutedCommand.

Applies to

CommandBinding(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)

Initializes a new instance of the CommandBinding class by using the specified ICommand and the specified Executed and CanExecute event handlers.

public:
 CommandBinding(System::Windows::Input::ICommand ^ command, System::Windows::Input::ExecutedRoutedEventHandler ^ executed, System::Windows::Input::CanExecuteRoutedEventHandler ^ canExecute);
public CommandBinding (System.Windows.Input.ICommand command, System.Windows.Input.ExecutedRoutedEventHandler executed, System.Windows.Input.CanExecuteRoutedEventHandler canExecute);
new System.Windows.Input.CommandBinding : System.Windows.Input.ICommand * System.Windows.Input.ExecutedRoutedEventHandler * System.Windows.Input.CanExecuteRoutedEventHandler -> System.Windows.Input.CommandBinding
Public Sub New (command As ICommand, executed As ExecutedRoutedEventHandler, canExecute As CanExecuteRoutedEventHandler)

Parameters

command
ICommand

The command to base the new RoutedCommand on.

executed
ExecutedRoutedEventHandler

The handler for the Executed event on the new RoutedCommand.

canExecute
CanExecuteRoutedEventHandler

The handler for the CanExecute event on the new RoutedCommand.

Applies to