KeyBinding Konstruktory

Definice

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é

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é

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é

Platí pro