Material Property
Collapse the table of content
Expand the table of content

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" />

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft