Click or drag to resize
Ab4d.SharpEngine logo

MouseCameraController Class

MouseCameraController is a camera controller that can control the camera by mouse events. This class can be used in WinUI application and can subscribe to mouse 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: 1.0.8740+dd919213ce98c470a123b140574ba91ba31d337e
Syntax
C#
public class MouseCameraController : ManualMouseCameraController

The MouseCameraController type exposes the following members.

Constructors
 NameDescription
Public methodMouseCameraController Constructor
Public methodMouseCameraController(SceneView, Control) Constructor that takes SceneView and eventsSourceElement
Public methodMouseCameraController(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 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 MouseCameraController.
Top
See Also