KeyBinding Konstruktory
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Inicializuje novou instanci KeyBinding třídy.
Přetížení
| Name | Description |
|---|---|
| KeyBinding() |
Inicializuje novou instanci KeyBinding třídy. |
| KeyBinding(ICommand, KeyGesture) |
Inicializuje novou instanci KeyBinding třídy pomocí zadané ICommand a KeyGesture. |
| KeyBinding(ICommand, Key, ModifierKeys) |
Inicializuje novou instanci KeyBinding třídy pomocí zadané ICommand a zadané Key a ModifierKeys která bude převedena na .KeyGesture |
KeyBinding()
Inicializuje novou instanci KeyBinding třídy.
public:
KeyBinding();
public KeyBinding();
Public Sub New ()
Viz také
- KeyBinding
- MouseBinding
- RoutedCommand
- CommandBinding
- KeyGesture
- MouseGesture
- InputGesture
- InputBinding
Platí pro
KeyBinding(ICommand, KeyGesture)
Inicializuje novou instanci KeyBinding třídy pomocí zadané ICommand a KeyGesture.
public:
KeyBinding(System::Windows::Input::ICommand ^ command, System::Windows::Input::KeyGesture ^ gesture);
public KeyBinding(System.Windows.Input.ICommand command, System.Windows.Input.KeyGesture gesture);
new System.Windows.Input.KeyBinding : System.Windows.Input.ICommand * System.Windows.Input.KeyGesture -> System.Windows.Input.KeyBinding
Public Sub New (command As ICommand, gesture As KeyGesture)
Parametry
- command
- ICommand
Příkaz, který chcete přidružit gesture.
- gesture
- KeyGesture
Kombinace kláves, která se má přidružit command.
Výjimky
command nebo gesture je null.
Viz také
- KeyBinding
- MouseBinding
- RoutedCommand
- CommandBinding
- KeyGesture
- MouseGesture
- InputGesture
- InputBinding
Platí pro
KeyBinding(ICommand, Key, ModifierKeys)
Inicializuje novou instanci KeyBinding třídy pomocí zadané ICommand a zadané Key a ModifierKeys která bude převedena na .KeyGesture
public:
KeyBinding(System::Windows::Input::ICommand ^ command, System::Windows::Input::Key key, System::Windows::Input::ModifierKeys modifiers);
public KeyBinding(System.Windows.Input.ICommand command, System.Windows.Input.Key key, System.Windows.Input.ModifierKeys modifiers);
new System.Windows.Input.KeyBinding : System.Windows.Input.ICommand * System.Windows.Input.Key * System.Windows.Input.ModifierKeys -> System.Windows.Input.KeyBinding
Public Sub New (command As ICommand, key As Key, modifiers As ModifierKeys)
Parametry
- command
- ICommand
Příkaz, který se má vyvolat.
- key
- Key
Klíč, ke kterým se má přidružit command.
- modifiers
- ModifierKeys
Modifikátory, které mají být přidruženy command.
Viz také
- KeyBinding
- MouseBinding
- RoutedCommand
- CommandBinding
- KeyGesture
- MouseGesture
- InputGesture
- InputBinding