CommandBinding Constructors

Definition

Inizializza una nuova istanza della classe CommandBinding.Initializes a new instance of the CommandBinding class.

Overloads

CommandBinding()

Inizializza una nuova istanza della classe CommandBinding.Initializes a new instance of the CommandBinding class.

CommandBinding(ICommand)

Inizializza una nuova istanza della classe CommandBinding mediante l'elemento ICommand specificato.Initializes a new instance of the CommandBinding class by using the specified ICommand.

CommandBinding(ICommand, ExecutedRoutedEventHandler)

Inizializza una nuova istanza della classe CommandBinding mediante i gestori eventi ICommand e Executed specificati.Initializes a new instance of the CommandBinding class by using the specified ICommand and the specified Executed event handler.

CommandBinding(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)

Inizializza una nuova istanza della classe CommandBinding mediante i gestori eventi ICommand, Executed e CanExecute specificati.Initializes a new instance of the CommandBinding class by using the specified ICommand and the specified Executed and CanExecute event handlers.

CommandBinding()

Inizializza una nuova istanza della classe CommandBinding.Initializes a new instance of the CommandBinding class.

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

See also

CommandBinding(ICommand)

Inizializza una nuova istanza della classe CommandBinding mediante l'elemento ICommand specificato.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

Il comando su cui basare il nuovo oggetto RoutedCommand.The command to base the new RoutedCommand on.

CommandBinding(ICommand, ExecutedRoutedEventHandler)

Inizializza una nuova istanza della classe CommandBinding mediante i gestori eventi ICommand e Executed specificati.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

Il comando su cui basare il nuovo oggetto RoutedCommand.The command to base the new RoutedCommand on.

executed
ExecutedRoutedEventHandler

Il gestore per l'evento Executed in relazione al nuovo oggetto RoutedCommand.The handler for the Executed event on the new RoutedCommand.

CommandBinding(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)

Inizializza una nuova istanza della classe CommandBinding mediante i gestori eventi ICommand, Executed e CanExecute specificati.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

Il comando su cui basare il nuovo oggetto RoutedCommand.The command to base the new RoutedCommand on.

executed
ExecutedRoutedEventHandler

Il gestore per l'evento Executed in relazione al nuovo oggetto RoutedCommand.The handler for the Executed event on the new RoutedCommand.

canExecute
CanExecuteRoutedEventHandler

Il gestore per l'evento CanExecute in relazione al nuovo oggetto RoutedCommand.The handler for the CanExecute event on the new RoutedCommand.

Applies to