Table of Contents

Class SelfProvider

Namespace
HelixToolkit.Wpf
Assembly
HelixToolkit.Wpf.dll

A MarkupExtension that provides the instance itself.

public abstract class SelfProvider : MarkupExtension
Inheritance
SelfProvider
Inherited Members

Remarks

This should not be used if multiple instances are created. In that case create a resource instead.

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

serviceProvider IServiceProvider

Object that can provide services for the markup extension.

Returns

object

The object value to set on the property where the extension is applied.