UIElement.KeyUp 事件

定義

焦點在這個項目上方且放開按鍵時發生。Occurs when a key is released while focus is on this element.

public:
 virtual event System::Windows::Input::KeyEventHandler ^ KeyUp;
public event System.Windows.Input.KeyEventHandler KeyUp;
member this.KeyUp : System.Windows.Input.KeyEventHandler 
Public Custom Event KeyUp As KeyEventHandler 

事件類型

KeyEventHandler

實作

備註

此事件會為 Keyboard.KeyUp 這個類別建立附加事件的別名, KeyUpUIElement 繼承為基底專案時,它就是類別成員清單的一部分。This event creates an alias for the Keyboard.KeyUp attached event for this class so that KeyUp is part of the class members list when UIElement is inherited as a base element. 附加至事件的事件處理常式 KeyUp 會附加至基礎 Keyboard.KeyUp 附加事件,並接收相同的事件資料實例。Event handlers that are attached to the KeyUp event are attached to the underlying Keyboard.KeyUp attached event and receive the same event data instance.

路由事件資訊Routed Event Information

識別碼欄位Identifier field KeyUpEvent
路由策略Routing strategy 鼓 泡Bubbling
代理人Delegate KeyEventHandler
  • 對應的通道事件為 PreviewKeyUpThe corresponding tunneling event is PreviewKeyUp.

  • OnKeyUp在衍生類別中覆寫以執行這個事件的類別處理。Override OnKeyUp to implement class handling for this event in derived classes.

適用於

另請參閱