'宣言 Public Event KeyDown As System.Windows.Input.KeyEventHandler
public event System.Windows.Input.KeyEventHandler KeyDown
イベント データ
イベント ハンドラが、このイベントに関連するデータを含む、System.Windows.Input.KeyEventArgs 型の引数を受け取りました。次の KeyEventArgs プロパティには、このイベントの固有の情報が記載されます。
プロパティ | 解説 |
---|---|
DeadCharProcessedKey | Gets the key that is part of dead key composition to create a single combined character. |
ImeProcessedKey | Gets the keyboard key referenced by the event, if the key will be processed by an Input Method Editor (IME). |
InputSource | Gets the input source that provided this input. |
IsDown | Gets a value that indicates whether the key referenced by the event is in the down state. |
IsRepeat | Gets a value that indicates whether the keyboard key referenced by the event is a repeated key. |
IsToggled | Gets a value that indicates whether the key referenced by the event is in the toggled state. |
IsUp | Gets a value that indicates whether the key referenced by the event is in the up state. |
Key | Gets the keyboard key associated with the event. |
KeyStates | Gets the state of the keyboard key associated with this event. |
SystemKey | Gets the keyboard key referenced by the event, if the key will be processed by the system. |
解説
このイベントは、ハンドラがキー押下のデフォルトの動作を回避できるようにするために、 System.Windows.UIElementの KeyDown をオーバーライドします。
参照