Partilhar via


CommandBinding Construtores

Definição

Inicializa uma nova instância da classe CommandBinding.

Sobrecargas

CommandBinding()

Inicializa uma nova instância da classe CommandBinding.

CommandBinding(ICommand)

Inicializa uma nova instância da classe CommandBinding usando o ICommand especificado.

CommandBinding(ICommand, ExecutedRoutedEventHandler)

Inicializa uma nova instância da classe CommandBinding usando o ICommand e o manipulador de eventos Executed especificados.

CommandBinding(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)

Inicializa uma nova instância da classe CommandBinding usando o ICommand especificado e os manipuladores de eventos Executed e CanExecute especificados.

CommandBinding()

Inicializa uma nova instância da classe CommandBinding.

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

Confira também

Aplica-se a

CommandBinding(ICommand)

Inicializa uma nova instância da classe CommandBinding usando o ICommand especificado.

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)

Parâmetros

command
ICommand

O comando no qual o novo RoutedCommand é baseado.

Aplica-se a

CommandBinding(ICommand, ExecutedRoutedEventHandler)

Inicializa uma nova instância da classe CommandBinding usando o ICommand e o manipulador de eventos Executed especificados.

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)

Parâmetros

command
ICommand

O comando no qual o novo RoutedCommand é baseado.

executed
ExecutedRoutedEventHandler

O manipulador para o evento Executed no novo RoutedCommand.

Aplica-se a

CommandBinding(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)

Inicializa uma nova instância da classe CommandBinding usando o ICommand especificado e os manipuladores de eventos Executed e CanExecute especificados.

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)

Parâmetros

command
ICommand

O comando no qual o novo RoutedCommand é baseado.

executed
ExecutedRoutedEventHandler

O manipulador para o evento Executed no novo RoutedCommand.

canExecute
CanExecuteRoutedEventHandler

O manipulador para o evento CanExecute no novo RoutedCommand.

Aplica-se a