ContentElement.OnMouseRightButtonUp(MouseButtonEventArgs) Método

Definición

Se invoca cuando un evento enrutado MouseRightButtonUp no controlado alcanza un elemento derivado de esta clase en su ruta.Invoked when an unhandled MouseRightButtonUp 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 public:
 virtual void OnMouseRightButtonUp(System::Windows::Input::MouseButtonEventArgs ^ e);
protected internal virtual void OnMouseRightButtonUp (System.Windows.Input.MouseButtonEventArgs e);
abstract member OnMouseRightButtonUp : System.Windows.Input.MouseButtonEventArgs -> unit
override this.OnMouseRightButtonUp : System.Windows.Input.MouseButtonEventArgs -> unit
Protected Friend Overridable Sub OnMouseRightButtonUp (e As MouseButtonEventArgs)

Parámetros

e
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 evento MouseRightButtonUp parece viajar a una ruta de propagación pero realmente se desplaza de manera indirecta.The MouseRightButtonUp event appears to travel a bubbling route but actually travels in an indirect way. Mouse.MouseUp es el evento subyacente que se enruta por burbuja y cada ContentElement a lo largo de la ruta de eventos usa un control idéntico para generar el MouseRightButtonUpde eventos enrutados directamente.Mouse.MouseUp is the underlying event that is bubble routed, and each ContentElement along the event route uses identical handling to raise the direct routed event MouseRightButtonUp. Aunque puede marcar el evento MouseRightButtonUp 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 MouseRightButtonUp 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 (los que no especificaron handledEventsToo).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 del mouse en ContentElement escucha Mouse.MouseUp y lo convierte en un evento local adecuado.The default implementation for general mouse event handling in ContentElement listens for Mouse.MouseUp 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 para Mouse.MouseUp.In the static constructor of your derived class, register an alternative class handler for Mouse.MouseUp. No se puede cambiar el comportamiento de control del mouse de ContentElement invalidando OnMouseRightButtonUp.You cannot change the mouse handling behavior of ContentElement by overriding OnMouseRightButtonUp.

Se aplica a