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

Lights

Updated on Sep 15, 2025

The lights in the 3D world are making the scene visible. The 3D chart allows you define different light sources to illuminate the scene. This can be done through the Lights collection of the chart. The collection holds objects of type System.Media.Media3D.Light. The WPF framework provides several built-in lights which you can use – AmbientLight, DirectionalLight, PointLight and SpotLight. You can read more about them in the 3-D Graphics Overview MSDN article.

Example 1: Adding lights in the chart using XAML

XAML
	<telerik:RadCartesianChart3D.Lights>
		<DirectionalLight />
	</telerik:RadCartesianChart3D.Lights>

Example 2: Adding lights in the chart in code

C#
	chart3D.Lights.Add(new DirectionalLight());

The chart uses default lights to illuminate the scene. Adding items in the Lights collection will override the default lighting.

When using the chart's CameraBehavior3D the direction of the lights is determined by the camera position. You can find more information about this in the Camera Behavior article.

See Also

In this article
See Also
Not finding the help you need?
Contact Support