Click or drag to resize
Ab4d.SharpEngine logo

PointerCameraController Class

PointerCameraController is a camera controller that can control the camera by pointer events. This class can be used in WinUI application and can subscribe to pointer events on the WinUI Control that is defined by the EventsSourceElement.
Inheritance Hierarchy

Namespace: Ab4d.SharpEngine.WinUI
Assembly: Ab4d.SharpEngine.WinUI (in Ab4d.SharpEngine.WinUI.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public class PointerCameraController : ManualPointerCameraController

The PointerCameraController type exposes the following members.

Constructors
 NameDescription
Public methodPointerCameraController Constructor
Public methodPointerCameraController(SceneView, Control) Constructor that takes SceneView and eventsSourceElement
Public methodPointerCameraController(SharpEngineSceneView, Control) Constructor that takes SharpEngineSceneView and an optional Control as events source. If later is not specified, then SharpEngineSceneView is used as events source.
Top
Properties
 NameDescription
Public propertyEventsSourceElement Gets or sets the Control that is used to subscribe the pointer or mouse events (for example a Border that is a parent of a SharpEngineSceneView). If the property is not set, SharpEngineSceneView element is used as event source (if not null).
Public propertySharpEngineSceneView Gets or sets the SharpEngineSceneView that is controlled by this PointerCameraController.
Top
See Also