Export (0) Print
Expand All

SpecularMaterial.SpecularPower Property

Gets or sets a value that specifies the degree to which a material applied to a 3-D model reflects the lighting model as shine.

Namespace:  System.Windows.Media.Media3D
Assembly:  PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

member SpecularPower : float with get, set
<object SpecularPower="double" .../>

Property Value

Type: System.Double
Relative contribution, for a material applied as a 2-D brush to a 3-D model, of the specular component of the lighting model.

Identifier field


Metadata properties set to true


Specular lighting reproduces the appearance of surfaces that are shiny or tend to reflect highlights. This property indicates the relative "shininess" of the material applied to the model. A larger value for this property specifies greater size and sharpness of the shine reflected by the material.

The following example creates an instance of SpecularMaterial and sets this property.

<MaterialGroup x:Key="LeavesMaterial1">
      <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" />
  <SpecularMaterial SpecularPower="85.3333">
      <SolidColorBrush Color="#FFFFFF" Opacity="1.000000"/>

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

© 2014 Microsoft