SpecularMaterial.Color Property

 

Gets or sets a value that filters the color properties of the material applied to the model.

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

public Color Color { get; set; }

Property Value

Type: System.Windows.Media.Color

The color with which to filter the material.

This property has the effect of filtering the material applied to the model by the color value specified. For example, setting this property to Colors.Red would occlude blue and green in the material.

Identifier field

ColorProperty

Metadata properties set to true

None

<MaterialGroup x:Key="LeavesMaterial1">
  <DiffuseMaterial>
    <DiffuseMaterial.Brush>
      <ImageBrush Stretch="UniformToFill" ImageSource="sample_images\leaves_closeup.png" TileMode="None" ViewportUnits="Absolute" Viewport="0 0 1 1" AlignmentX="Left" AlignmentY="Top" Opacity="1.000000" />
    </DiffuseMaterial.Brush>
  </DiffuseMaterial>
  <SpecularMaterial SpecularPower="85.3333">
    <SpecularMaterial.Brush>
      <SolidColorBrush Color="#FFFFFF" Opacity="1.000000"/>
    </SpecularMaterial.Brush>
  </SpecularMaterial>
</MaterialGroup>

.NET Framework
Available since 3.0
Return to top
Show: