CommandBinding Costruttori

Definizione

Inizializza una nuova istanza della classe CommandBinding.

Overload

CommandBinding()

Inizializza una nuova istanza della classe CommandBinding.

CommandBinding(ICommand)

Inizializza una nuova istanza della classe CommandBinding mediante l'elemento ICommand specificato.

CommandBinding(ICommand, ExecutedRoutedEventHandler)

Inizializza una nuova istanza della classe CommandBinding mediante i gestori eventi ICommand e Executed specificati.

CommandBinding(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)

Inizializza una nuova istanza della classe CommandBinding mediante i gestori eventi ICommand, Executed e CanExecute specificati.

CommandBinding()

Inizializza una nuova istanza della classe CommandBinding.

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

Vedi anche

Si applica a

CommandBinding(ICommand)

Inizializza una nuova istanza della classe CommandBinding mediante l'elemento ICommand specificato.

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)

Parametri

command
ICommand

Il comando su cui basare il nuovo oggetto RoutedCommand.

Si applica a

CommandBinding(ICommand, ExecutedRoutedEventHandler)

Inizializza una nuova istanza della classe CommandBinding mediante i gestori eventi ICommand e Executed specificati.

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)

Parametri

command
ICommand

Il comando su cui basare il nuovo oggetto RoutedCommand.

executed
ExecutedRoutedEventHandler

Il gestore per l'evento Executed in relazione al nuovo oggetto RoutedCommand.

Si applica a

CommandBinding(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)

Inizializza una nuova istanza della classe CommandBinding mediante i gestori eventi ICommand, Executed e CanExecute specificati.

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)

Parametri

command
ICommand

Il comando su cui basare il nuovo oggetto RoutedCommand.

executed
ExecutedRoutedEventHandler

Il gestore per l'evento Executed in relazione al nuovo oggetto RoutedCommand.

canExecute
CanExecuteRoutedEventHandler

Il gestore per l'evento CanExecute in relazione al nuovo oggetto RoutedCommand.

Si applica a