Version

Configuring Wireframe Material

Purpose

This topic explains how to configure the material of the series wireframe 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 Wireframe Material

Overview

Use the XamScatterSurface3D WireframeMaterial property to configure the material of the xamScatterSurface3D control series wireframe.

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 series wireframe material

Material

Example

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

Property Value

<DiffuseMaterial Brush="Red"/>

Configuring Wireframe Material 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"
 WireframeThickness="0.004">
    <ig:XamScatterSurface3D.SeriesMaterial>
        <DiffuseMaterial Brush="WhiteSmoke" />
    </ig:XamScatterSurface3D.SeriesMaterial>
    <ig:XamScatterSurface3D.WireframeMaterial>
        <DiffuseMaterial Brush="Red" />
    </ig:XamScatterSurface3D.WireframeMaterial>
</ig:XamScatterSurface3D>

In C#:

…
var diffuseMaterial = new DiffuseMaterial();
diffuseMaterial.Brush = new SolidColorBrush(Colors.Red);
SurfaceChart.WireframeThickness = 0.004;
SurfaceChart.WireframeMaterial = diffuseMaterial;

In Visual Basic:

…
Dim diffuseMaterial = New DiffuseMaterial()
diffuseMaterial.Brush = New SolidColorBrush(Colors.Red)
SurfaceChart.WireframeThickness = 0.004
SurfaceChart.WireframeMaterial = diffuseMaterial

Configuring Wireframe Thickness

Overview

Use the XamScatterSurface3D WireframeThickness property to configure the thickness of the xamScatterSurface3D control series wireframe.

By default, the initial value of the WireframeThickness property is 0.002.

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 series wireframe thickness

double

Example

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

Property Value

0.008

Configuring Wireframe Material 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"
 WireframeThickness="0.008">
    <ig:XamScatterSurface3D.SeriesMaterial>
        <DiffuseMaterial Brush="WhiteSmoke" />
    </ig:XamScatterSurface3D.SeriesMaterial>
    <ig:XamScatterSurface3D.WireframeMaterial>
        <DiffuseMaterial Brush="Red" />
    </ig:XamScatterSurface3D.WireframeMaterial>
</ig:XamScatterSurface3D>

In C#:

…
var diffuseMaterial = new DiffuseMaterial();
diffuseMaterial.Brush = new SolidColorBrush(Colors.Red);
SurfaceChart.WireframeThickness = 0.008;
SurfaceChart.WireframeMaterial = diffuseMaterial;

In Visual Basic:

…
Dim diffuseMaterial = New DiffuseMaterial()
diffuseMaterial.Brush = New SolidColorBrush(Colors.Red)
SurfaceChart.WireframeThickness = 0.008
SurfaceChart.WireframeMaterial = diffuseMaterial

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 light settings in the xamScatterSurface3D control.

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

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