In This Article

SRExtension Class

A markup extension that loads an assembly's string resource.

public class SRExtension : SRExtensionBase<SRName>
Inheritance:
object SRExtensionBase<SRName> object

Constructors

SRExtension()

Initializes an instance of the class.

public SRExtension()

SRExtension(SRName)

Initializes an instance of the class with a string resource name.

public SRExtension(SRName name)
Parameter Type Description
name SRName

The name of the string resource.

Properties

Name

The name of the string resource.

[ConstructorArgument("name")]
public override SRName Name { get; set; }

Property Value

SRName

Methods

ProvideValue()

Returns the string resource based on the supplied name.

public override string? ProvideValue()

Returns

string:

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

Inherited Members

Extension Methods