This documentation is archived and is not being maintained.

GeometryModel3D.Material Property

Gets or sets the Material used to render the front of this GeometryModel3D.

Namespace:  System.Windows.Media.Media3D
Assembly:  PresentationCore (in PresentationCore.dll)

public Material Material { get; set; }

Identifier field


Metadata properties set to true


The following code excerpt defines a SolidColorBrush as a DiffuseMaterial on a GeometryModel3D.

    <GeometryModel3D Geometry="{StaticResource myTeapot}">
            <SolidColorBrush Color="Blue" Opacity="1.0" />
            <AxisAngleRotation3D x:Name="myAngleRotation" Axis="0,3,0" Angle="1" />

More Code

How to: Apply Material to the Front and Back of a 3-D ObjectThe following example shows how to apply a Material to the front and back of a 3-D object and animate the object to show both sides of the object. The Material property of a GeometryModel3D is used to apply a red Brush to the front side of the object and the BackMaterial property of the GeometryModel3D is used to apply a blue Brush to the back side of the object. The code below shows the application of the materials to the object:

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.