Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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)

new : 
        member:string -> StaticExtension

Parameters

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.

ExceptionCondition
ArgumentNullException

member is a null reference (Nothing in Visual Basic).

The member value is not evaluated when you set it. If the initial value is not a null reference (Nothing in Visual Basic),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.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft