Set the Material of an object or group of objects

Namespace: Ico.Gwx
Assembly: Gwx3DControl (in Gwx3DControl.dll) Version: 10.97.212.0 (10.97.212.00)

Syntax

C#
public void SetMaterialToObject(
	DependencyObject item,
	Material material,
	bool useBackMaterial
)
Visual Basic
Public Sub SetMaterialToObject ( _
	item As DependencyObject, _
	material As Material, _
	useBackMaterial As Boolean _
)
JScript
public function SetMaterialToObject(
	item : DependencyObject, 
	material : Material, 
	useBackMaterial : boolean
)

Parameters

item
Type: System.Windows..::..DependencyObject
the object to set the Material for
material
Type: System.Windows.Media.Media3D..::..Material
the Material to set on the object
useBackMaterial
Type: System..::..Boolean
set to true to set the Material for the back of the object instead of the front of the object

See Also