Export (0) Print
Expand All

StaticExtension Constructor (String)

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.


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

Supported in: 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft