Control.OnPreviewMouseDoubleClick(MouseButtonEventArgs) Method

Definition

引发 PreviewMouseDoubleClick 路由事件。Raises the PreviewMouseDoubleClick routed event.

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

Parameters

e
MouseButtonEventArgs

事件数据。The event data.

Remarks

控件通过调用 RaiseEvent 方法引发 PreviewMouseDoubleClick 事件。The control raises the PreviewMouseDoubleClick event by calling the RaiseEvent method. 有关详细信息,请参阅路由事件概述For more information, see Routed Events Overview.

Notes to Inheritors

当在派生类中重写 OnPreviewMouseDoubleClick(MouseButtonEventArgs) 时,请确保调用基类的 "OnPreviewMouseDoubleClick(MouseButtonEventArgs) 方法,以便注册的委托接收事件。When overriding OnPreviewMouseDoubleClick(MouseButtonEventArgs) in a derived class, be sure to call the base class' OnPreviewMouseDoubleClick(MouseButtonEventArgs) method so that registered delegates receive the event.

Applies to