Breyta

Deila með


SpecularMaterial.Color Property

Definition

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

public:
 property System::Windows::Media::Color Color { System::Windows::Media::Color get(); void set(System::Windows::Media::Color value); };
public System.Windows.Media.Color Color { get; set; }
member this.Color : System.Windows.Media.Color with get, set
Public Property Color As Color

Property Value

The color with which to filter the material.

Examples

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

Remarks

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.

Dependency Property Information

Identifier field ColorProperty
Metadata properties set to true None

Applies to