Click or drag to resize
AB4D logo

MouseCameraControllerEventsSourceElementRotationChange Property

Gets or sets a double value that specifies for how many degrees the camera is rotates when the mouse moves from one side of the EventsSourceElement to another size. The default value is 270.

Namespace: Ab3d.Controls
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public double EventsSourceElementRotationChange { get; set; }

Property Value

Double
Remarks

If EventsSourceElement property is not set manually, it is set to the Viewport3D with the TargetCameraName.

EventsSourceElementRotationChange controls the speed of rotation. Bigger values mean that smaller mouse moves will rotate the camera more.

Note that if EventsSourceElement property is set to Viewport3D (manually or automatically) the mouse events occur only on the area of Viewport3D that actually shows a content. So mouse events do not happen on the empty area of the Viewport3D. To enable mouse events on the whole area of Viewport3D, set its Background to any Brush - for example White or Transparent. This also applies to any other EventsSourceElement (Grid, Canvas, UserControl) except Window.

See Also