CommandBinding Costruttori

Definizione

Inizializza una nuova istanza della classe CommandBinding.

Overload

Nome Descrizione
CommandBinding()

Inizializza una nuova istanza della classe CommandBinding.

CommandBinding(ICommand)

Inizializza una nuova istanza della CommandBinding classe utilizzando l'oggetto specificato ICommand.

CommandBinding(ICommand, ExecutedRoutedEventHandler)

Inizializza una nuova istanza della CommandBinding classe utilizzando l'oggetto specificato ICommand e il gestore eventi specificato Executed .

CommandBinding(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)

Inizializza una nuova istanza della CommandBinding classe utilizzando i gestori di eventi e specificati ICommand e Executed specificatiCanExecute.

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 CommandBinding classe utilizzando l'oggetto specificato 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)

Parametri

command
ICommand

Comando su cui basare il nuovo RoutedCommand .

Si applica a

CommandBinding(ICommand, ExecutedRoutedEventHandler)

Inizializza una nuova istanza della CommandBinding classe utilizzando l'oggetto specificato ICommand e il gestore eventi specificato Executed .

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

Comando su cui basare il nuovo RoutedCommand .

executed
ExecutedRoutedEventHandler

Gestore per l'evento Executed nel nuovo RoutedCommandoggetto .

Si applica a

CommandBinding(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)

Inizializza una nuova istanza della CommandBinding classe utilizzando i gestori di eventi e specificati ICommand e Executed specificatiCanExecute.

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

Comando su cui basare il nuovo RoutedCommand .

executed
ExecutedRoutedEventHandler

Gestore per l'evento Executed nel nuovo RoutedCommandoggetto .

canExecute
CanExecuteRoutedEventHandler

Gestore per l'evento CanExecute nel nuovo RoutedCommandoggetto .

Si applica a