Class ImageMaterialExtension
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
Markupextension for Image Materials
public sealed class ImageMaterialExtension : MarkupExtension
- Inheritance
-
ImageMaterialExtension
- Inherited Members
Examples
Material={helix:ImageMaterial images\\myimage.png, Opacity=0.8}
Constructors
ImageMaterialExtension(string)
Initializes a new instance of the ImageMaterialExtension class.
public ImageMaterialExtension(string path)
Parameters
pathstringThe path.
Properties
IsEmissive
Gets or sets a value indicating whether this material is emissive.
public bool IsEmissive { get; set; }
Property Value
- bool
trueif this material is emissive; otherwise,false.
Opacity
Gets or sets the opacity.
public double Opacity { get; set; }
Property Value
- double
The opacity.
UriKind
Gets or sets the kind of the URI.
public UriKind UriKind { get; set; }
Property Value
- UriKind
The kind of the URI.
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.