Control.OnPreviewMouseDoubleClick(MouseButtonEventArgs) Control.OnPreviewMouseDoubleClick(MouseButtonEventArgs) Control.OnPreviewMouseDoubleClick(MouseButtonEventArgs) Control.OnPreviewMouseDoubleClick(MouseButtonEventArgs) Method

定義

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

參數

備註

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

給繼承者的注意事項

當覆寫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.

適用於