UIElement.PreviewMouseUp UIElement.PreviewMouseUp UIElement.PreviewMouseUp UIElement.PreviewMouseUp Event

定義

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

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

備註

此事件建立的別名Mouse.PreviewMouseUp附加事件,此類別中,以便PreviewMouseUp屬於類別的成員清單時UIElement繼承為基底的項目。This event creates an alias for the Mouse.PreviewMouseUp attached event for this class, so that PreviewMouseUp is part of the class members list when UIElement is inherited as a base element. 附加至事件處理常式PreviewMouseUp事件會附加至基礎Mouse.PreviewMouseUp附加事件,並接收相同的事件資料執行個體。Event handlers that are attached to the PreviewMouseUp event are attached to the underlying Mouse.PreviewMouseUp attached event and receive the same event data instance.

PreviewMouseUp通常就會引發事件一起PreviewMouseLeftButtonUpPreviewMouseRightButtonUp,對應到其中的兩個標準的滑鼠按鈕按下。The PreviewMouseUp event is often raised together with either PreviewMouseLeftButtonUp or PreviewMouseRightButtonUp, which correspond to a press of one of the two standard mouse buttons. PreviewMouseLeftButtonUpPreviewMouseRightButtonUp也是路由的事件,但它們是直接路由的事件,並適當按鈕特有的事件引發時Mouse.PreviewMouseUp事件到達事件路由中的此項目。PreviewMouseLeftButtonUp and PreviewMouseRightButtonUp are also routed events, but they are direct routed events, and the appropriate button-specific event is raised when the Mouse.PreviewMouseUp event reaches this element along the event route. 請參閱備註PreviewMouseLeftButtonUpPreviewMouseRightButtonUpSee Remarks for PreviewMouseLeftButtonUp or PreviewMouseRightButtonUp.

路由事件資訊Routed Event Information

識別項欄位Identifier field PreviewMouseUpEvent
路由策略Routing strategy 通道Tunneling
Delegate - 委派Delegate MouseButtonEventHandler
  • 對應的事件反昇事件是MouseUpThe corresponding bubbling event is MouseUp.

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

適用於