Popup.OnPreviewMouseRightButtonUp(MouseButtonEventArgs) 方法

定义

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

protected:
 override void OnPreviewMouseRightButtonUp(System::Windows::Input::MouseButtonEventArgs ^ e);
protected override void OnPreviewMouseRightButtonUp (System.Windows.Input.MouseButtonEventArgs e);
override this.OnPreviewMouseRightButtonUp : System.Windows.Input.MouseButtonEventArgs -> unit
Protected Overrides Sub OnPreviewMouseRightButtonUp (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.

适用于