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í
| KeyBinding() |
Inicializuje novou instanci KeyBinding třídy . |
| KeyBinding(ICommand, KeyGesture) |
Inicializuje novou instanci KeyBinding třídy pomocí zadaných ICommand a KeyGesture. |
| KeyBinding(ICommand, Key, ModifierKeys) |
Inicializuje novou instanci KeyBinding třídy pomocí zadaných ICommand a zadaných Key a ModifierKeys , které budou převedeny 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ých 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 pro přidružení gesturek .
- gesture
- KeyGesture
Kombinace kláves, která se má přidružit commandk .
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ých ICommand a zadaných Key a ModifierKeys , které budou převedeny 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íč, který se má přidružit commandk .
- modifiers
- ModifierKeys
Modifikátory, které mají být přidruženy k command.
Viz také
- KeyBinding
- MouseBinding
- RoutedCommand
- CommandBinding
- KeyGesture
- MouseGesture
- InputGesture
- InputBinding