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 

實作

備註

這個事件會為這個類別建立 Keyboard.KeyUp 附加事件的別名,因此當 UIElement 繼承為基底專案時,KeyUp 就會是類別成員清單的一部分。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 - 委派Delegate KeyEventHandler
  • 對應的通道事件為 PreviewKeyUpThe corresponding tunneling event is PreviewKeyUp.

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

適用於

另請參閱