Control.OnMouseDoubleClick(MouseButtonEventArgs) Control.OnMouseDoubleClick(MouseButtonEventArgs) Control.OnMouseDoubleClick(MouseButtonEventArgs) Control.OnMouseDoubleClick(MouseButtonEventArgs) Method

定義

引發 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)

參數

備註

控制項會引發MouseDoubleClick藉由呼叫的事件RaiseEvent方法。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.

適用於