แก้ไข

แชร์ผ่าน


StaticExtension Constructors

Definition

Initializes a new instance of the StaticExtension class.

Overloads

StaticExtension()

Initializes a new instance of the StaticExtension class.

StaticExtension(String)

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

StaticExtension()

Initializes a new instance of the StaticExtension class.

public:
 StaticExtension();
public StaticExtension ();
Public Sub New ()

Applies to

StaticExtension(String)

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

public:
 StaticExtension(System::String ^ member);
public StaticExtension (string member);
new System.Windows.Markup.StaticExtension : string -> System.Windows.Markup.StaticExtension
Public Sub New (member As String)

Parameters

member
String

A string that identifies the member to make a reference to. This string uses the format prefix:typeName.fieldOrPropertyName. prefix 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.

Exceptions

member is null.

Remarks

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.

See also

Applies to