ContentElement.MouseUp ContentElement.MouseUp ContentElement.MouseUp ContentElement.MouseUp Event

定義

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

public:
 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附加事件,此類別中,以便MouseUp屬於類別的成員清單時ContentElement繼承為基底的項目。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通常就會引發事件一起MouseLeftButtonUpMouseRightButtonUp,對應至其中的兩個標準的滑鼠按鈕的版本。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. 請參閱備註MouseLeftButtonUpMouseRightButtonUpSee Remarks for MouseLeftButtonUp or MouseRightButtonUp.

路由事件資訊Routed Event Information

識別項欄位Identifier field MouseUpEvent
路由策略Routing strategy 事件反昇Bubbling
Delegate - 委派Delegate MouseButtonEventHandler
  • 對應的通道事件是PreviewMouseUpThe corresponding tunneling event is PreviewMouseUp.

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

適用於