This documentation is archived and is not being maintained.

TypeExtension.TypeName Property

Gets or sets the type name represented by this markup extension.

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

public string TypeName { get; set; }
For XAML information, see x:Type Markup Extension.

Property Value

Type: System.String
String identifying a type, in the format Prefix:Typename, where Prefix refers to the XML namespace prefix in a XAML file.


Cannot set this to be null.

This value is not evaluated when you set it; so long as the value is not null it will be accepted. The actual parsing and evaluation of the value is defered until ProvideValue is called on this extension and it is expected to return the type. It is more common to provide the member value during construction, which is enabled by the XAML behavior of the extension.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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

.NET Framework

Supported in: 3.5, 3.0