ContentElement.PreviewMouseUp ContentElement.PreviewMouseUp ContentElement.PreviewMouseUp ContentElement.PreviewMouseUp Event


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

 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 


這個事件PreviewMouseUp會為這個類別建立Mouse.PreviewMouseUp附加事件的別名, 因此當繼承為基底專案時ContentElement , 就是類別成員清單的一部分。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 ContentElement 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.

事件通常會PreviewMouseLeftButtonUp與或PreviewMouseRightButtonUp一起引發, 其對應至兩個標準滑鼠按鍵的其中一個。 PreviewMouseUpThe 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. 請參閱或PreviewMouseLeftButtonUp PreviewMouseRightButtonUp的備註。See Remarks for PreviewMouseLeftButtonUp or PreviewMouseRightButtonUp.

路由事件資訊Routed Event Information

識別碼欄位Identifier field PreviewMouseUpEvent
路由策略Routing strategy 建立Tunneling
Delegate - 委派Delegate MouseButtonEventHandler
  • 對應的反升事件MouseUp為。The corresponding bubbling event is MouseUp.

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