Sdílet prostřednictvím


CommandBinding Konstruktory

Definice

Inicializuje novou instanci CommandBinding třídy .

Přetížení

CommandBinding()

Inicializuje novou instanci CommandBinding třídy .

CommandBinding(ICommand)

Inicializuje novou instanci CommandBinding třídy pomocí zadané ICommand.

CommandBinding(ICommand, ExecutedRoutedEventHandler)

Inicializuje novou instanci CommandBinding třídy pomocí zadané ICommand a zadané Executed obslužné rutiny události.

CommandBinding(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)

Inicializuje novou instanci CommandBinding třídy pomocí zadaných ICommand a zadaných Executed obslužných rutin a CanExecute událostí.

CommandBinding()

Inicializuje novou instanci CommandBinding třídy .

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

Viz také

Platí pro

CommandBinding(ICommand)

Inicializuje novou instanci CommandBinding třídy pomocí zadané 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)

Parametry

command
ICommand

Příkaz, na který se má založit nový RoutedCommand .

Platí pro

CommandBinding(ICommand, ExecutedRoutedEventHandler)

Inicializuje novou instanci CommandBinding třídy pomocí zadané ICommand a zadané Executed obslužné rutiny události.

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)

Parametry

command
ICommand

Příkaz, na který se má založit nový RoutedCommand .

executed
ExecutedRoutedEventHandler

Obslužná rutina Executed události v novém RoutedCommand.

Platí pro

CommandBinding(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)

Inicializuje novou instanci CommandBinding třídy pomocí zadaných ICommand a zadaných Executed obslužných rutin a CanExecute událostí.

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)

Parametry

command
ICommand

Příkaz, na který se má založit nový RoutedCommand .

executed
ExecutedRoutedEventHandler

Obslužná rutina Executed události v novém RoutedCommand.

canExecute
CanExecuteRoutedEventHandler

Obslužná rutina CanExecute události v novém RoutedCommand.

Platí pro