KeyboardEventHandler 代理人
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表處理鍵盤相關路由事件的方法。
public delegate void KeyboardEventHandler(System::Object ^ sender, KeyboardEventArgs ^ e);
public delegate void KeyboardEventHandler(object sender, KeyboardEventArgs e);
type KeyboardEventHandler = delegate of obj * KeyboardEventArgs -> unit
Public Delegate Sub KeyboardEventHandler(sender As Object, e As KeyboardEventArgs)
參數
- sender
- Object
事件處理程式所附加的物件。
事件資料。
備註
WPF 中沒有任何現有的鍵盤事件使用 KeyboardEventHandler 代理。 KeyboardEventHandler 使用 KeyboardEventArgs 基底類別作為其事件資料類別。 KeyboardEventArgs 作為更具體 KeyEventArgs 及 KeyboardFocusChangedEventArgs 事件資料類別的基底類別。 這些事件資料類別由 KeyEventHandler 和 KeyboardFocusChangedEventHandler 代理使用,而這些代理則被現有的 WPF 事件如 UIElement.KeyDown 和 UIElement.LostKeyboardFocus 使用。
擴充方法
| 名稱 | Description |
|---|---|
| GetMethodInfo(Delegate) |
取得一個代表指定代理所代表方法的物件。 |