Edit

Share via


IXamlNameResolver.GetFixupToken Method

Definition

Returns an object that can correct for certain markup patterns that produce forward references.

Overloads

GetFixupToken(IEnumerable<String>)

Returns an object that can correct for certain markup patterns that produce forward references.

GetFixupToken(IEnumerable<String>, Boolean)

Returns an object that can correct for certain markup patterns that produce forward references.

GetFixupToken(IEnumerable<String>)

Returns an object that can correct for certain markup patterns that produce forward references.

public:
 System::Object ^ GetFixupToken(System::Collections::Generic::IEnumerable<System::String ^> ^ names);
public object GetFixupToken (System.Collections.Generic.IEnumerable<string> names);
abstract member GetFixupToken : seq<string> -> obj
Public Function GetFixupToken (names As IEnumerable(Of String)) As Object

Parameters

names
IEnumerable<String>

A collection of names that are possible forward references.

Returns

An object that provides a token for lookup behavior to be evaluated later.

Remarks

Existing internal service providers that are available in schema contexts for markup extensions and type converters can implement this service; however, they return an internal type that only the existing XAML writers that work under the default XAML schema context can process.

When all the forward referenced names are resolvable, the user code is called to reparse each name in the list.

Applies to

GetFixupToken(IEnumerable<String>, Boolean)

Returns an object that can correct for certain markup patterns that produce forward references.

public:
 System::Object ^ GetFixupToken(System::Collections::Generic::IEnumerable<System::String ^> ^ names, bool canAssignDirectly);
public object GetFixupToken (System.Collections.Generic.IEnumerable<string> names, bool canAssignDirectly);
abstract member GetFixupToken : seq<string> * bool -> obj
Public Function GetFixupToken (names As IEnumerable(Of String), canAssignDirectly As Boolean) As Object

Parameters

names
IEnumerable<String>

A collection of names that are possible forward references.

canAssignDirectly
Boolean

true to immediately assign the resolved name reference to the target property. false to call the user code for a reparse. The default behavior is false.

Returns

An object that provides a token for lookup behavior to be evaluated later.

Remarks

Existing internal service providers that are available in schema contexts for markup extensions and type converters implement this service; however, they return an internal type that can only be processed by the existing XAML writers that work under the default XAML schema context.

If canAssignDirectly is false, when all the forward referenced names are resolvable, the user code is called to reparse each name in the list.

Applies to