CommandBinding Konstruktorok

Definíció

Inicializálja a CommandBinding osztály új példányát.

Túlterhelések

Name Description
CommandBinding()

Inicializálja a CommandBinding osztály új példányát.

CommandBinding(ICommand)

Inicializálja az osztály új példányát a CommandBinding megadott ICommandparanccsel.

CommandBinding(ICommand, ExecutedRoutedEventHandler)

Inicializálja az CommandBinding osztály új példányát a megadott ICommand és a megadott Executed eseménykezelő használatával.

CommandBinding(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)

Inicializálja az CommandBinding osztály új példányát a megadott ICommand és a megadott Executed és CanExecute eseménykezelők használatával.

CommandBinding()

Inicializálja a CommandBinding osztály új példányát.

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

Lásd még

A következőre érvényes:

CommandBinding(ICommand)

Inicializálja az osztály új példányát a CommandBinding megadott ICommandparanccsel.

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)

Paraméterek

command
ICommand

Az új RoutedCommand alapjául szolgáló parancs.

A következőre érvényes:

CommandBinding(ICommand, ExecutedRoutedEventHandler)

Inicializálja az CommandBinding osztály új példányát a megadott ICommand és a megadott Executed eseménykezelő használatával.

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)

Paraméterek

command
ICommand

Az új RoutedCommand alapjául szolgáló parancs.

executed
ExecutedRoutedEventHandler

Az új Executedesemény kezelőjeRoutedCommand.

A következőre érvényes:

CommandBinding(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)

Inicializálja az CommandBinding osztály új példányát a megadott ICommand és a megadott Executed és CanExecute eseménykezelők használatával.

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)

Paraméterek

command
ICommand

Az új RoutedCommand alapjául szolgáló parancs.

executed
ExecutedRoutedEventHandler

Az új Executedesemény kezelőjeRoutedCommand.

canExecute
CanExecuteRoutedEventHandler

Az új CanExecuteesemény kezelőjeRoutedCommand.

A következőre érvényes: