StaticExtension Constructor (String)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Initializes a new instance of the StaticExtension class using the provided member string.

Namespace:   System.Windows.Markup
Assembly:  System.Xaml (in System.Xaml.dll)

public StaticExtension(
	string member


Type: System.String

A string that identifies the member to make a reference to. This string uses the format prefix:typeName.fieldOrPropertyNameprefix is the mapping prefix for a XAML namespace, and is only required to reference static values that are not mapped to the default XAML namespace.

Exception Condition

member is null.

The member value is not evaluated when you set it. If the initial value is not null,then the value is accepted. The actual parsing and evaluation of the member value is deferred until ProvideValue is called when a XAML writer processes an extension usage. At that time, XAML schema context informs the type mapping and the value can be obtained.

.NET Framework
Available since 3.0
Return to top