ContentElement.KeyUp ContentElement.KeyUp ContentElement.KeyUp ContentElement.KeyUp Event

定義

焦點在這個項目上方且放開按鍵時發生。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附加事件的別名, 因此當KeyUp繼承為基底專案時ContentElement , 就是類別成員清單的一部分。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 ContentElement 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.

適用於

另請參閱