CommandBinding Konstruktory
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Inicjuje nowe wystąpienie klasy CommandBinding.
Przeciążenia
| Nazwa | Opis |
|---|---|
| CommandBinding() |
Inicjuje nowe wystąpienie klasy CommandBinding. |
| CommandBinding(ICommand) |
Inicjuje nowe wystąpienie CommandBinding klasy przy użyciu określonego ICommandelementu . |
| CommandBinding(ICommand, ExecutedRoutedEventHandler) |
Inicjuje nowe wystąpienie CommandBinding klasy przy użyciu określonej ICommand i określonej Executed procedury obsługi zdarzeń. |
| CommandBinding(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler) |
Inicjuje nowe wystąpienie CommandBinding klasy przy użyciu określonych ICommand i określonych Executed procedur obsługi zdarzeń i CanExecute . |
CommandBinding()
Inicjuje nowe wystąpienie klasy CommandBinding.
public:
CommandBinding();
public CommandBinding();
Public Sub New ()
Zobacz też
Dotyczy
CommandBinding(ICommand)
Inicjuje nowe wystąpienie CommandBinding klasy przy użyciu określonego ICommandelementu .
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
Polecenie , aby oprzeć nowe RoutedCommand .
Dotyczy
CommandBinding(ICommand, ExecutedRoutedEventHandler)
Inicjuje nowe wystąpienie CommandBinding klasy przy użyciu określonej ICommand i określonej Executed procedury obsługi zdarzeń.
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
Polecenie , aby oprzeć nowe RoutedCommand .
- executed
- ExecutedRoutedEventHandler
Procedura obsługi zdarzenia Executed w nowym RoutedCommandobiekcie .
Dotyczy
CommandBinding(ICommand, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler)
Inicjuje nowe wystąpienie CommandBinding klasy przy użyciu określonych ICommand i określonych Executed procedur obsługi zdarzeń i CanExecute .
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
Polecenie , aby oprzeć nowe RoutedCommand .
- executed
- ExecutedRoutedEventHandler
Procedura obsługi zdarzenia Executed w nowym RoutedCommandobiekcie .
- canExecute
- CanExecuteRoutedEventHandler
Procedura obsługi zdarzenia CanExecute w nowym RoutedCommandobiekcie .