Show / Hide Table of Contents

Class MarkupExtension

Provides a base class for XAML markup extension implementations that can be supported by Silverlight XAML processors.

Inheritance
System.Object
MarkupExtension
BindingBase
RelativeSource
DynamicResourceExtension
NullExtension
StaticExtension
StaticResourceExtension
TypeExtension
TemplateBindingExtension
Implements
IMarkupExtension<System.Object>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Markup
Assembly: OpenSilver.dll
Syntax
public abstract class MarkupExtension : IMarkupExtension<object>

Constructors

| Improve this Doc View Source

MarkupExtension()

Initializes a new instance of the MarkupExtension.

Declaration
protected MarkupExtension()

Methods

| Improve this Doc View Source

ProvideValue(IServiceProvider)

When implemented in a derived class, returns an object that is provided as the value of the target property for this markup extension.

Declaration
public abstract object ProvideValue(IServiceProvider serviceProvider)
Parameters
Type Name Description
System.IServiceProvider serviceProvider

A service provider helper that can provide services for the markup extension.

Returns
Type Description
System.Object

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

Implements

IMarkupExtension<T>
  • Improve this Doc
  • View Source