Class MaterialExtension
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
Markupextension for Materials
public sealed class MaterialExtension : MarkupExtension
- Inheritance
-
MaterialExtension
- Inherited Members
Examples
Material={helix:Material Blue, Opacity=0.5}
Constructors
MaterialExtension(Color)
Initializes a new instance of the MaterialExtension class.
public MaterialExtension(Color color)
Parameters
colorColorThe color.
Properties
Opacity
Gets or sets the opacity.
public double Opacity { get; set; }
Property Value
- double
The opacity.
SpecularIntensity
Gets or sets the specular intensity.
public double SpecularIntensity { get; set; }
Property Value
- double
The specular intensity.
SpecularPower
Gets or sets the specular power.
public double SpecularPower { get; set; }
Property Value
- double
The specular power.
Methods
ProvideValue(IServiceProvider)
When implemented in a derived class, returns an object that is set as the value of the target property for this markup extension.
public override object ProvideValue(IServiceProvider serviceProvider)
Parameters
serviceProviderIServiceProviderObject that can provide services for the markup extension.
Returns
- object
The object value to set on the property where the extension is applied.