UIElement.KeyUp UIElement.KeyUp UIElement.KeyUp UIElement.KeyUp Event


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

 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附加事件,此類別,讓KeyUp屬於類別的成員清單時UIElement繼承為基底的項目。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.