KeyBinding Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy KeyBinding.

Przeciążenia

KeyBinding()

Inicjuje nowe wystąpienie klasy KeyBinding.

KeyBinding(ICommand, KeyGesture)

Inicjuje KeyBinding nowe wystąpienie klasy przy użyciu określonej klasy ICommand i KeyGesture.

KeyBinding(ICommand, Key, ModifierKeys)

Inicjuje KeyBinding nowe wystąpienie klasy przy użyciu określonego ICommand i określonego Key i ModifierKeys które zostanie przekonwertowane na .KeyGesture

KeyBinding()

Inicjuje nowe wystąpienie klasy KeyBinding.

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

Zobacz też

Dotyczy

KeyBinding(ICommand, KeyGesture)

Inicjuje KeyBinding nowe wystąpienie klasy przy użyciu określonej klasy ICommand i 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

Polecenie do skojarzenia z gestureprogramem .

gesture
KeyGesture

Kombinacja klawiszy do skojarzenia z elementem command.

Wyjątki

command lub gesture to null.

Zobacz też

Dotyczy

KeyBinding(ICommand, Key, ModifierKeys)

Inicjuje KeyBinding nowe wystąpienie klasy przy użyciu określonego ICommand i określonego Key i ModifierKeys które zostanie przekonwertowane 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

Polecenie do wywołania.

key
Key

Klucz, który ma być skojarzony z elementem command.

modifiers
ModifierKeys

Modyfikatory, które mają być skojarzone z commandprogramem .

Zobacz też

Dotyczy