Collapse the table of content
Expand the table of content
Expand Minimize

UIElement3D.OnPreviewMouseLeftButtonUp Method (MouseButtonEventArgs)


Invoked when an unhandled PreviewMouseLeftButtonUp  reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.GTMT

Namespace:   System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)

Protected Friend Overridable Sub OnPreviewMouseLeftButtonUp (
	e As MouseButtonEventArgs


Type: System.Windows.Input.MouseButtonEventArgs

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

The PreviewMouseLeftButtonUp event appears to travel a tunneling route but actually travels in an indirect way. Mouse.PreviewMouseUp is the underlying event that is tunnel routed, and each UIElement3D along the event route uses identical handling to raise the direct routed event PreviewMouseLeftButtonUp. 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. 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.PreviewMouseUp 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.PreviewMouseUp. You cannot change the mouse handling behavior of UIElement3D by overriding OnPreviewMouseLeftButtonUp.

OnPreviewMouseLeftButtonUp is introduced in the .NET Framework version 3.5. For more information, see .NET Framework Versions and Dependencies.

.NET Framework
Available since 3.0
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft