Control.OnMouseDoubleClick(MouseButtonEventArgs) 方法

定義

引發 MouseDoubleClick 路由事件。Raises the MouseDoubleClick routed event.

protected:
 virtual void OnMouseDoubleClick(System::Windows::Input::MouseButtonEventArgs ^ e);
protected virtual void OnMouseDoubleClick (System.Windows.Input.MouseButtonEventArgs e);
abstract member OnMouseDoubleClick : System.Windows.Input.MouseButtonEventArgs -> unit
override this.OnMouseDoubleClick : System.Windows.Input.MouseButtonEventArgs -> unit
Protected Overridable Sub OnMouseDoubleClick (e As MouseButtonEventArgs)

參數

e
MouseButtonEventArgs

事件資料。The event data.

備註

控制項會藉由RaiseEvent呼叫MouseDoubleClick方法來引發事件。The control raises the MouseDoubleClick event by calling the RaiseEvent method. 如需詳細資訊, 請參閱路由事件總覽For more information, see Routed Events Overview.

給繼承者的注意事項

在衍生OnMouseDoubleClick(MouseButtonEventArgs)類別中覆寫時, 請務必呼叫基類OnMouseDoubleClick(MouseButtonEventArgs)的方法, 讓已註冊的委派能接收事件。When overriding OnMouseDoubleClick(MouseButtonEventArgs) in a derived class, be sure to call the base class' OnMouseDoubleClick(MouseButtonEventArgs) method so that registered delegates receive the event.

適用於