Popup.OnPreviewMouseLeftButtonDown(MouseButtonEventArgs) 方法

定义

提供用于 PreviewMouseLeftButtonDown 事件的类处理。Provides class handling for the PreviewMouseLeftButtonDown event.

protected:
 override void OnPreviewMouseLeftButtonDown(System::Windows::Input::MouseButtonEventArgs ^ e);
protected override void OnPreviewMouseLeftButtonDown (System.Windows.Input.MouseButtonEventArgs e);
override this.OnPreviewMouseLeftButtonDown : System.Windows.Input.MouseButtonEventArgs -> unit
Protected Overrides Sub OnPreviewMouseLeftButtonDown (e As MouseButtonEventArgs)

参数

e
MouseButtonEventArgs

事件数据。The event data.

注解

此实现确保PopupStaysOpen在属性设置为false时, 如果鼠标事件在Popup外发生, 则关闭。This implementation makes sure that a Popup closes when a mouse event occurs outside the Popup when the StaysOpen property is set to false.

适用于