Version

Cube Settings

Purpose

This topic explains how to configure the rim thickness and the material of the cube of 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.

The following table lists the external articles required as a prerequisite to understanding this topic.

Defining Material

Article Purpose

This articles describes how to use the abstract Material class in WPF.

This articles describes how to define and use the DiffuseMaterial class in WPF.

In this topic

This topic contains the following sections:

Configuring Cube Material

Overview

Use the XamScatterSurface3D CubeMaterial property to configure the material of the xamScatterSurface3D control background cube.

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:

Configure the background cube material

Material

Example

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

Property Value
<DiffuseMaterial>  <DiffuseMaterial.Brush>  <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1" Opacity="0.8">  <GradientStop Color="#FFF2F2F2" Offset="1"/>  <GradientStop Color="#FFA4BA29" Offset="0"/>  </LinearGradientBrush>  </DiffuseMaterial.Brush> </DiffuseMaterial>
3D Surface Chart Cube 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">
    <ig:XamScatterSurface3D.CubeMaterial>
        <DiffuseMaterial>
            <DiffuseMaterial.Brush>
                <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1" Opacity="0.8">
                    <GradientStop Color="#FFF2F2F2" Offset="1"/>
                    <GradientStop Color="#FFA4BA29" Offset="0"/>
                </LinearGradientBrush>
            </DiffuseMaterial.Brush>
        </DiffuseMaterial>
    </ig:XamScatterSurface3D.CubeMaterial>
</ig:XamScatterSurface3D>

Configuring Cube Rim Thickness

Overview

Use the XamScatterSurface3D RimThickness property to configure the thickness of the cube rim of the xamScatterSurface3D control.

This property value is a value between 0 and 1, relative to the size of the entire cube.

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:

Configure the cube rim thickness

double

Example

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

Property Value

0.1

3D Surface Chart Cube 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"
 RimThickness="0.1"/>

In C#:

…
SurfaceChart.RimThickness = 0.1;

In Visual Basic:

…
SurfaceChart.RimThickness = 0.1

Related Content

Topics

The following topics provide additional information related to this topic.

Topic Purpose

This topic explains how to configure the aspect and perspective of the xamScatterSurface3D control.

The topics in this group explain how to configure different axis settings in the xamScatterSurface3D control.

This topic explains how to configure to the crosshairs in the xamScatterSurface3D control.

The topics in this group explain how to configure the data point markers in the xamScatterSurface3D control.

This topic explains how to configure the floor settings of the xamScatterSurface3D control.

This topic explains how the xamScatterSurface3D control performance can be optimized when rendering a large set of data points.

This topic explains how to configure the xamScatterSurface3D control rotation using code.

The topics in this group explain how to configure different series settings in the xamScatterSurface3D control.

This topic explains how to show/hide the default tooltip and how apply a custom tooltip using DataTemplate in the xamScatterSurface3D control.

This topic explains how to perform the scaling of the xamScatterSurface3D control.