Edit

Share via


UIElement3D.OnMouseRightButtonUp(MouseButtonEventArgs) Method

Definition

Invoked when an unhandled MouseRightButtonUp routed event reaches an element in its route that is derived from this class. 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)

Parameters

e
MouseButtonEventArgs

The MouseButtonEventArgs that contains the event data. The event data reports that the right mouse button was released.

Remarks

The MouseRightButtonUp event appears to travel a bubbling route but actually travels in an indirect way. Mouse.MouseUp is the underlying event that is bubble routed, and each UIElement3D along the event route uses identical handling to raise the direct routed event MouseRightButtonUp. 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. 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.

The default implementation for general mouse event handling in UIElement3D listens for Mouse.MouseUp and converts it to an appropriate local event. If you want to override this logic, you must create a derived class. In the static constructor of your derived class, register an alternative class handler for Mouse.MouseUp. You cannot change the mouse handling behavior of UIElement3D by overriding OnMouseRightButtonUp.

Applies to