Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
TypeExtension Constructor (String)

TypeExtension Constructor (String)

Initializes a new instance of the TypeExtension class, initializing the TypeName value based on the provided typeName string.

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

public TypeExtension(
	string typeName


Type: System.String

A string that identifies the type to make a reference to. This string uses the format prefix:classNameprefix is the mapping prefix for a XAML namespace, and is only required to reference types that are not mapped to the default XAML namespace.


Attempted to specify typeName as null.

This value is not evaluated when you set it in the constructor. If the value is not null, the value will be initially accepted. The actual parsing and evaluation of the value is deferred until ProvideValue is called on this extension, when XAML is parsed and with available service contexts active. At this time the typeName is expected to be resolvable as a type within a XAML schema context, and that type is returned.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft