KeyBinding Konstruktorok
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Inicializálja a KeyBinding osztály új példányát.
Túlterhelések
| Name | Description |
|---|---|
| KeyBinding() |
Inicializálja a KeyBinding osztály új példányát. |
| KeyBinding(ICommand, KeyGesture) |
Inicializálja az osztály új példányát a KeyBinding megadott ICommand és KeyGesturea . |
| KeyBinding(ICommand, Key, ModifierKeys) |
Inicializálja az osztály új példányát a KeyBinding megadott ICommand és a megadott Key érték használatával, és ModifierKeys amelyet a rendszer átalakít egy KeyGesture. |
KeyBinding()
Inicializálja a KeyBinding osztály új példányát.
public:
KeyBinding();
public KeyBinding();
Public Sub New ()
Lásd még
- KeyBinding
- MouseBinding
- RoutedCommand
- CommandBinding
- KeyGesture
- MouseGesture
- InputGesture
- InputBinding
A következőre érvényes:
KeyBinding(ICommand, KeyGesture)
Inicializálja az osztály új példányát a KeyBinding megadott ICommand és KeyGesturea .
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)
Paraméterek
- command
- ICommand
A társítandó gestureparancs.
- gesture
- KeyGesture
A társítandó commandkulcskombináció.
Kivételek
command vagy gesture az null.
Lásd még
- KeyBinding
- MouseBinding
- RoutedCommand
- CommandBinding
- KeyGesture
- MouseGesture
- InputGesture
- InputBinding
A következőre érvényes:
KeyBinding(ICommand, Key, ModifierKeys)
Inicializálja az osztály új példányát a KeyBinding megadott ICommand és a megadott Key érték használatával, és ModifierKeys amelyet a rendszer átalakít egy 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)
Paraméterek
- command
- ICommand
A meghívandó parancs.
- key
- Key
A társítandó commandkulcs.
- modifiers
- ModifierKeys
A társítandó commandmódosítók.
Lásd még
- KeyBinding
- MouseBinding
- RoutedCommand
- CommandBinding
- KeyGesture
- MouseGesture
- InputGesture
- InputBinding