New to Telerik UI for WPFStart a free 30-day trial

A behavior that manipulates the camera and lights of a 3D chart in accordance to user interaction with mouse or touch.

Definition

Namespace:Telerik.Windows.Controls.ChartView

Assembly:Telerik.Windows.Controls.Chart.dll

Syntax:

C#
public class Chart3DCameraBehavior : Chart3DBehavior

Inheritance: objectInheritanceContextPropagatorChart3DBehaviorChart3DCameraBehavior

Inherited Members InheritanceContextPropagator.CreateInstanceCore()InheritanceContextPropagator.FreezeCore(bool)

Constructors

Initializes a new instance of the Chart3DCameraBehavior class.

C#
public Chart3DCameraBehavior()

Fields

DistanceProperty

DependencyProperty

Identifies the Distance dependency property.

C#
public static readonly DependencyProperty DistanceProperty

FieldOfViewProperty

DependencyProperty

Identifies the FieldOfView dependency property.

C#
public static readonly DependencyProperty FieldOfViewProperty

FirstAngleProperty

DependencyProperty

Identifies the FirstAngle dependency property.

C#
public static readonly DependencyProperty FirstAngleProperty

IsRotationEnabledProperty

DependencyProperty

Identifies the IsRotationEnabled attached dependency property.

C#
public static readonly DependencyProperty IsRotationEnabledProperty

MaxDistanceProperty

DependencyProperty

Identifies the MaxDistance dependency property.

C#
public static readonly DependencyProperty MaxDistanceProperty

MaxSecondAngleProperty

DependencyProperty

Identifies the MaxSecondAngle dependency property.

C#
public static readonly DependencyProperty MaxSecondAngleProperty

MinDistanceProperty

DependencyProperty

Identifies the MinDistance dependency property.

C#
public static readonly DependencyProperty MinDistanceProperty

MinSecondAngleProperty

DependencyProperty

Identifies the MinSecondAngle dependency property.

C#
public static readonly DependencyProperty MinSecondAngleProperty

SecondAngleProperty

DependencyProperty

Identifies the SecondAngle dependency property.

C#
public static readonly DependencyProperty SecondAngleProperty

Properties

Gets or sets the distance. This property has a different meaning for the different cameras. When a PerspectiveCamera is in use, the distance is the radius of the sphere that the camera is positioned on. When an OrthographicCamera is in use, the distance is the Width of the camera.

C#
public double Distance { get; set; }

Gets the drag-to-rotate key combinations. Drag rotation is performed when at least one key combination is fully satisfied. When this collection is empty rotation is performed when the left mouse button is pressed.

C#
public List<ChartKeyCombination> DragToRotateKeyCombinations { get; }

Gets or sets a value that represents the PerspectiveCamera camera's horizontal field of view.

C#
public double FieldOfView { get; set; }

Gets the keys that allow modifying the field of view on mouse wheel. The field of view is updated when at least one of these keys is pressed. When this collection is empty the field of view is updated when the left shift and/or right shift is pressed.

C#
public List<Key> FieldOfViewModifierKeys { get; }

Gets or sets the angle between the axis to the right and the projection of the line between the camera position and plot area center onto the horizontal plane. The axis to the right is considered to be the one that goes to the right when one axis goes up and another goes towards the viewer. The horizontal plane is considered to be the plane that is defined by the right axis and the axis that goes towards the viewer.

C#
public double FirstAngle { get; set; }

Gets or sets the maximum distance.

C#
public double MaxDistance { get; set; }

Gets or sets the maximum SecondAngle.

C#
public double MaxSecondAngle { get; set; }

Gets or sets the minimum distance.

C#
public double MinDistance { get; set; }

Gets or sets the minimum SecondAngle.

C#
public double MinSecondAngle { get; set; }

Gets or sets the angle between the UpDirection axis and the line between the camera position and plot area center.

C#
public double SecondAngle { get; set; }

Gets or sets a value indicating which axis defines the up direction of the camera.

C#
public Axis3DType UpDirection { get; set; }

Methods

Gets a value indicating whether the object should be rotated by a camera behavior.

C#
public static bool GetIsRotationEnabled(DependencyObject obj)
Parameters:objDependencyObjectReturns:

bool

Sets a value indicating whether the object should be rotated by a camera behavior.

C#
public static void SetIsRotationEnabled(DependencyObject obj, bool value)
Parameters:objDependencyObjectvaluebool