ContentElement.MouseUp 事件


在此元素上方放開任何滑鼠按鈕時發生。Occurs when any mouse button is released over this element.

 event System::Windows::Input::MouseButtonEventHandler ^ MouseUp;
public event System.Windows.Input.MouseButtonEventHandler MouseUp;
member this.MouseUp : System.Windows.Input.MouseButtonEventHandler 
Public Custom Event MouseUp As MouseButtonEventHandler 




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

MouseUp事件通常會與或一起引發 MouseLeftButtonUp MouseRightButtonUp ,其對應至兩個標準滑鼠按鍵之一的釋放。The MouseUp event is often raised together with either MouseLeftButtonUp or MouseRightButtonUp, which correspond to a release of one of the two standard mouse buttons. MouseLeftButtonUpMouseRightButtonUp 也是路由事件,但它們是直接路由事件,當 Mouse.MouseDown 事件在事件路由中到達這個專案時,就會引發適當的按鈕特定事件。MouseLeftButtonUp and MouseRightButtonUp are also routed events, but they are direct routed events, and the appropriate button-specific event is raised when the Mouse.MouseDown event reaches this element along the event route. 請參閱或的備註 MouseLeftButtonUp MouseRightButtonUpSee Remarks for MouseLeftButtonUp or MouseRightButtonUp.

路由事件資訊Routed Event Information

識別碼欄位Identifier field MouseUpEvent
路由策略Routing strategy 路由Bubbling
代理人Delegate MouseButtonEventHandler
  • 對應的通道事件為 PreviewMouseUpThe corresponding tunneling event is PreviewMouseUp.

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