UIElement.OnPreviewMouseRightButtonUp(MouseButtonEventArgs) UIElement.OnPreviewMouseRightButtonUp(MouseButtonEventArgs) UIElement.OnPreviewMouseRightButtonUp(MouseButtonEventArgs) UIElement.OnPreviewMouseRightButtonUp(MouseButtonEventArgs) Method

Definición

Se invoca cuando un evento enrutado PreviewMouseRightButtonUp no controlado alcanza un elemento derivado de esta clase en su ruta.Invoked when an unhandled PreviewMouseRightButtonUp routed event reaches an element in its route that is derived from this class. Implemente este método a fin de agregar el control de clases para este evento.Implement this method to add class handling for this event.

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

Parámetros

e
MouseButtonEventArgs MouseButtonEventArgs MouseButtonEventArgs MouseButtonEventArgs

Objeto MouseButtonEventArgs que contiene los datos del evento.The MouseButtonEventArgs that contains the event data. Los datos del evento indican que se soltó el botón derecho del mouse.The event data reports that the right mouse button was released.

Comentarios

El PreviewMouseRightButtonUp evento parece viajar una ruta de tunelización pero realmente se desplaza de forma indirecta.The PreviewMouseRightButtonUp event appears to travel a tunneling route but actually travels in an indirect way. Mouse.PreviewMouseUpes el evento subyacente que está enrutado por el túnel UIElement , y cada uno de ellos a lo largo de la ruta de evento PreviewMouseRightButtonUputiliza un control idéntico para generar el evento enrutado directo.Mouse.PreviewMouseUp is the underlying event that is tunnel routed, and each UIElement along the event route uses identical handling to raise the direct routed event PreviewMouseRightButtonUp. Aunque puede marcar el PreviewMouseRightButtonUp evento como controlado para este elemento, el estado controlado no se perpetua a otros elementos a lo largo de la ruta del evento.Although you can mark the PreviewMouseRightButtonUp event as handled for purposes of this element, the handled state does not perpetuate to other elements along the event route. Sin embargo, es posible que desee marcar el evento como controlado para evitar que se invoquen los controladores de instancia generales ( handledEventsToolos que no se especificaron).However, you might want to mark the event as handled in order to prevent general instance handlers (those that did not specify handledEventsToo) from being invoked.

La implementación predeterminada para el control general de eventos UIElement del mouse en Mouse.PreviewMouseUp escucha y lo convierte en un evento local adecuado.The default implementation for general mouse event handling in UIElement listens for Mouse.PreviewMouseUp and converts it to an appropriate local event. Si desea invalidar esta lógica, debe crear una clase derivada.If you want to override this logic, you must create a derived class. En el constructor estático de la clase derivada, registre un controlador de clase alternativo Mouse.PreviewMouseUppara.In the static constructor of your derived class, register an alternative class handler for Mouse.PreviewMouseUp. No se puede cambiar el comportamiento de control UIElement del mouse de OnPreviewMouseRightButtonUpinvalidando.You cannot change the mouse handling behavior of UIElement by overriding OnPreviewMouseRightButtonUp.

Se aplica a