Click or drag to resize
Ab4d.SharpEngine logo

InputEventsManager Class

InputEventsManager is a WPF specific implementation of a generic ManualInputEventsManager. This class simplifies working with pointer and mouse events on 3D objects for WPF.
Inheritance Hierarchy
SystemObject
  Ab4d.SharpEngine.UtilitiesManualInputEventsManager
    Ab4d.SharpEngine.WpfInputEventsManager

Namespace: Ab4d.SharpEngine.Wpf
Assembly: Ab4d.SharpEngine.Wpf (in Ab4d.SharpEngine.Wpf.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public class InputEventsManager : ManualInputEventsManager, 
	IDisposable

The InputEventsManager type exposes the following members.

Constructors
 NameDescription
Public methodInputEventsManager(ISharpEngineSceneView, FrameworkElement) Constructor that takes SharpEngineSceneView and an optional FrameworkElement as events source. If later is not specified, then SharpEngineSceneView is used as events source.
Public methodInputEventsManager(SceneView, FrameworkElement) Constructor that takes SceneView and eventsSourceElement
Top
Properties
 NameDescription
Public propertyEventsSourceElement Gets the FrameworkElement that is used to subscribe the mouse events (for example a Border that is a parent of a SharpEngineSceneView). If the property is not set in the constructor, SharpEngineSceneView element is used as event source (if not null).
Public propertySharpEngineSceneView Gets the SharpEngineSceneView that is used by this InputEventsManager. This can be null when InputEventsManager is created by SceneView and not SharpEngineSceneView.
Top
Methods
 NameDescription
Public methodCapturePointer CaptureMouse method captures the pointer or mouse events so that even if mouse is moved out of the active window, the mouse events are passed to the active window. This method must be overriden by a derived class to provide any functionality. To end the capture, call the EndPointerCapture method.
(Overrides ManualInputEventsManagerCapturePointer)
Public methodDispose Dispose method unsubscribed this InputEventsManager from all events on the EventsSourceElement.
Public methodEndPointerCapture EndPointerCapture end the pointer or mouse capture that was started by calling the CapturePointer method. This method must be overriden by a derived class to provide any functionality.
(Overrides ManualInputEventsManagerEndPointerCapture)
Top
See Also