Version

Configuring Series Lighting

Purpose

This topic explains how to configure the light settings in the XamScatterSurface3D™ control.

Required background

The following topics are prerequisites to understanding this topic:

Topic Purpose

This topic provides detailed instructions to help you get up and running as soon as possible with the xamScatterSurface3D™ control.

This topic explains the features supported by the control from developer perspective.

This topic provides an overview of the visual elements of the control.

In this topic

This topic contains the following sections:

Configuring Light Direction

Overview

Use the XamScatterSurface3D LightDirection property to specify the direction of the light that lights up the xamScatterSurface3D control.

Property settings

The following table maps the desired configuration to the property settings that manage it.

In order to: Use this property: And set it to:

Specify the light direction

Vector3D

Example

The screenshot below demonstrates how the xamScatterSurface3D control looks as a result of the following settings:

Property Value

0 -1 0

3D Surface Chart Light Settings 1.png

Following is the code that implements this example.

In XAML:

<ig:XamScatterSurface3D Name="SurfaceChart"
 ItemsSource="{Binding Path=DataCollection}"
 XMemberPath="X" YMemberPath="Y" ZMemberPath="Z"
 LightDirection="0 -1 0" />

In C#:

SurfaceChart.LightDirection = new System.Windows.Media.Media3D.Vector3D(0, -1, 0);

In Visual Basic:

SurfaceChart.LightDirection = New System.Windows.Media.Media3D.Vector3D(0, -1, 0)

Configuring Light Intensity

Overview

Use the XamScatterSurface3D LightIntensity property to specify the light intensity in the xamScatterSurface3D control.

Property settings

The following table maps the desired configuration to the property settings that manage it.

In order to: Use this property: And set it to:

Specify the light intensity

double

Example

The screenshot below demonstrates how the xamScatterSurface3D control looks as a result of the following settings:

Property Value

0.7

3D Surface Chart Light Settings 2.png

Following is the code that implements this example.

In XAML:

<ig:XamScatterSurface3D Name="SurfaceChart"
 ItemsSource="{Binding Path=DataCollection}"
 XMemberPath="X" YMemberPath="Y" ZMemberPath="Z"
 LightIntensity="0.7"/>

In C#:

…
SurfaceChart.LightIntensity = 0.7;

In Visual Basic:

…
SurfaceChart.LightIntensity = 0.7

Configuring Shininess

Overview

Use the XamScatterSurface3D Shininess property to specify the series shininess in the xamScatterSurface3D control.

Property settings

The following table maps the desired configuration to the property settings that manage it.

In order to: Use this property: And set it to:

Specify the series shininess

double

Example

The screenshot below demonstrates how the xamScatterSurface3D control looks as a result of the following settings:

Property Value

0.9

3D Surface Chart Light Settings 3.png

Following is the code that implements this example.

In XAML:

<ig:XamScatterSurface3D Name="SurfaceChart"
 ItemsSource="{Binding Path=DataCollection}"
 XMemberPath="X" YMemberPath="Y" ZMemberPath="Z"
 Shininess="0.9"/>

In C#:

…
SurfaceChart.Shininess = 0.9;

In Visual Basic:

…
SurfaceChart.Shininess = 0.9

Related Content

Topics

The following topics provide additional information related to this topic.

Topic Purpose

This topic explains how to apply a custom color palette to the xamScatterSurface3D control series as well as how to configure the colors interpolation.

This topic explains how to configure the material of the series of the xamScatterSurface3D control.

This topic explains how to configure the material of the series wireframe of the xamScatterSurface3D control.

This topic summarizes the series mouse events in the xamScatterSurface3D control.