UIElement.OnPreviewMouseLeftButtonUp(MouseButtonEventArgs) UIElement.OnPreviewMouseLeftButtonUp(MouseButtonEventArgs) UIElement.OnPreviewMouseLeftButtonUp(MouseButtonEventArgs) UIElement.OnPreviewMouseLeftButtonUp(MouseButtonEventArgs) Method

Definición

Se invoca cuando un evento enrutado PreviewMouseLeftButtonUp no controlado alcanza un elemento derivado de esta clase en su ruta.Invoked when an unhandled PreviewMouseLeftButtonUp 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 OnPreviewMouseLeftButtonUp(System::Windows::Input::MouseButtonEventArgs ^ e);
protected virtual void OnPreviewMouseLeftButtonUp (System.Windows.Input.MouseButtonEventArgs e);
abstract member OnPreviewMouseLeftButtonUp : System.Windows.Input.MouseButtonEventArgs -> unit
override this.OnPreviewMouseLeftButtonUp : System.Windows.Input.MouseButtonEventArgs -> unit
Protected Overridable Sub OnPreviewMouseLeftButtonUp (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 notifican que se soltó el botón primario del mouse.The event data reports that the left mouse button was released.

Comentarios

El PreviewMouseLeftButtonUp evento parece atravesar una ruta de tunelización pero realmente se desplaza de forma indirecta.The PreviewMouseLeftButtonUp event appears to travel a tunneling route but actually travels in an indirect way. Mouse.PreviewMouseUp es el evento subyacente que se enruta de túnel y cada UIElement junto con el evento ruta usa el control idéntico para generar el evento enrutado directo PreviewMouseLeftButtonUp.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 PreviewMouseLeftButtonUp. Aunque puede marcar el PreviewMouseLeftButtonUp evento como controlado para los fines de este elemento, no perpetuar el estado controlado a otros elementos a lo largo de la ruta del evento.Although you can mark the PreviewMouseLeftButtonUp event as handled for purposes of this element, the handled state does not perpetuate to other elements along the event route. Sin embargo, puede marcar el evento como controlado con el fin de evitar que los controladores de instancia general (aquellos que no especificó handledEventsToo) desde que se va a invocar.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 los eventos de mouse generales de control en UIElement escucha Mouse.PreviewMouseUp 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 alternativa para Mouse.PreviewMouseUp.In the static constructor of your derived class, register an alternative class handler for Mouse.PreviewMouseUp. No se puede cambiar el mouse controlar el comportamiento de UIElement invalidando OnPreviewMouseLeftButtonUp.You cannot change the mouse handling behavior of UIElement by overriding OnPreviewMouseLeftButtonUp.

Se aplica a