KeyBinding Konstruktorer

Definition

Initierar en ny instans av KeyBinding klassen.

Överlagringar

Name Description
KeyBinding()

Initierar en ny instans av KeyBinding klassen.

KeyBinding(ICommand, KeyGesture)

Initierar en ny instans av KeyBinding klassen med angivet ICommand och KeyGesture.

KeyBinding(ICommand, Key, ModifierKeys)

Initierar en ny instans av KeyBinding klassen med den angivna ICommand och angivna Key och ModifierKeys som kommer att konverteras till en KeyGesture.

KeyBinding()

Initierar en ny instans av KeyBinding klassen.

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

Se även

Gäller för

KeyBinding(ICommand, KeyGesture)

Initierar en ny instans av KeyBinding klassen med angivet ICommand och 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)

Parametrar

command
ICommand

Kommandot som ska associeras med gesture.

gesture
KeyGesture

Nyckelkombinationen som ska associeras med command.

Undantag

command eller gesture är null.

Se även

Gäller för

KeyBinding(ICommand, Key, ModifierKeys)

Initierar en ny instans av KeyBinding klassen med den angivna ICommand och angivna Key och ModifierKeys som kommer att konverteras till en 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)

Parametrar

command
ICommand

Kommandot som ska anropas.

key
Key

Nyckeln som ska associeras med command.

modifiers
ModifierKeys

De modifierare som ska associeras med command.

Se även

Gäller för