KeyBinding コンストラクター

定義

KeyBinding クラスの新しいインスタンスを初期化します。

オーバーロード

名前 説明
KeyBinding()

KeyBinding クラスの新しいインスタンスを初期化します。

KeyBinding(ICommand, KeyGesture)

指定したKeyBindingICommandを使用して、KeyGesture クラスの新しいインスタンスを初期化します。

KeyBinding(ICommand, Key, ModifierKeys)

指定したKeyBindingと、ICommandに変換される指定したKeyModifierKeysを使用して、KeyGesture クラスの新しいインスタンスを初期化します。

KeyBinding()

KeyBinding クラスの新しいインスタンスを初期化します。

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

こちらもご覧ください

適用対象

KeyBinding(ICommand, KeyGesture)

指定したKeyBindingICommandを使用して、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)

パラメーター

command
ICommand

gestureに関連付けるコマンド。

gesture
KeyGesture

commandに関連付けるキーの組み合わせ。

例外

command または gesturenull

こちらもご覧ください

適用対象

KeyBinding(ICommand, Key, ModifierKeys)

指定したKeyBindingと、ICommandに変換される指定したKeyModifierKeysを使用して、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)

パラメーター

command
ICommand

呼び出すコマンド。

key
Key

commandに関連付けるキー。

modifiers
ModifierKeys

commandに関連付ける修飾子。

こちらもご覧ください

適用対象