Compartir a través de


CommandBinding Constructores

Definición

Inicializa una nueva instancia de la clase CommandBinding.

Sobrecargas

CommandBinding()

Inicializa una nueva instancia de la clase CommandBinding.

CommandBinding(ICommand)

Inicializa una nueva instancia de la clase CommandBinding utilizando el objeto ICommand especificado.

CommandBinding(ICommand, ExecutedRoutedEventHandler)

Inicializa una nueva instancia de la clase CommandBinding mediante la interfaz ICommand y el controlador de eventos Executed especificado.

CommandBinding(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)

Inicializa una nueva instancia de la clase CommandBinding mediante la interfaz ICommand especificada y los controladores de eventos Executed y CanExecute especificados.

CommandBinding()

Inicializa una nueva instancia de la clase CommandBinding.

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

Consulte también

Se aplica a

CommandBinding(ICommand)

Inicializa una nueva instancia de la clase CommandBinding utilizando el objeto 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

Comando en el que se va a basar el nuevo objeto RoutedCommand.

Se aplica a

CommandBinding(ICommand, ExecutedRoutedEventHandler)

Inicializa una nueva instancia de la clase CommandBinding mediante la interfaz ICommand y el controlador de eventos Executed especificado.

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

Comando en el que se va a basar el nuevo objeto RoutedCommand.

executed
ExecutedRoutedEventHandler

Controlador para el evento Executed en el nuevo RoutedCommand.

Se aplica a

CommandBinding(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)

Inicializa una nueva instancia de la clase CommandBinding mediante la interfaz ICommand especificada y los controladores de eventos Executed y 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

Comando en el que se va a basar el nuevo objeto RoutedCommand.

executed
ExecutedRoutedEventHandler

Controlador para el evento Executed en el nuevo RoutedCommand.

canExecute
CanExecuteRoutedEventHandler

Controlador para el evento CanExecute en el nuevo RoutedCommand.

Se aplica a