This documentation is archived and is not being maintained.

TypeExtension Class

Implements a markup extension that returns a Type based on a string attribute input.

Namespace: System.Windows.Markup
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml

[MarkupExtensionReturnTypeAttribute(typeof(Type))] 
[TypeConverterAttribute(typeof(TypeExtensionConverter))] 
public ref class TypeExtension : public MarkupExtension
/** @attribute MarkupExtensionReturnTypeAttribute(System.Type) */ 
/** @attribute TypeConverterAttribute(System.Windows.Markup.TypeExtensionConverter) */ 
public class TypeExtension extends MarkupExtension
MarkupExtensionReturnTypeAttribute(System.Type) 
TypeConverterAttribute(System.Windows.Markup.TypeExtensionConverter) 
public class TypeExtension extends MarkupExtension
 For XAML information, see x:Type Markup Extension. 

Type references are commonly used for the styling and databinding features in WPF when referenced in XAML.

This class is a markup extension implementation. Markup extension classes exist mainly to provide infrastructure support for some aspect of the WPF XAML reader implementation, and the members exposed by a markup extension are not typically called from user code. This extension supports the x:Type Markup Extension usage from XAML.

System.Object
   System.Windows.Markup.MarkupExtension
    System.Windows.Markup.TypeExtension

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: