Maps a XAML element name to the appropriate CLR Type in assemblies.
Assembly: PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml
Thetype exposes the following members.
|XamlTypeMapper(String)||Initializes a new instance of the class by specifying an array of assembly names that the should use.|
|XamlTypeMapper(String, NamespaceMapEntry)||Initializes a new instance of the class, using the specified array of assembly names and the specified namespace maps.|
|AddMappingProcessingInstruction||Defines a mapping between an XML namespace and CLR namespaces in assemblies, and adds these to the information.|
|AllowInternalType||Requests permission for a derived type that is called under full trust to access a specific internal type.|
|Equals(Object)||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as the default hash function. (Inherited from Object.)|
|GetType()||Gets the Type of the current instance. (Inherited from Object.)|
|GetType(String, String)||Gets the CLR Type that a given XAML element is mapped to, using the specified XML namespace prefix and element name.|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|SetAssemblyPath||Specifies the path to use when loading an assembly.|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
is part of an advanced WPF scenario that supplies alternate context for XamlReader and XamlWriter. For .NET Framework 4 WPF applications, you should consider overriding XamlSchemaContext for this scenario, rather than attempting to use .
can be used to provide the XAML parser with custom mapping information through a more direct technique than the application of XmlnsDefinitionAttribute values on the assembly code. This might be useful for consolidation of all CLR namespaces in an assembly, or for referencing types that are XAML-ready in an existing assembly without having to recompile it just to add XmlnsDefinitionAttribute attributing.
You typically create a instance in order to specify the XamlTypeMapper property value for a ParserContext. The ParserContext in turn can be used as the context for a XamlReader.Load(Stream, ParserContext) call.
You can obtain a default mapper using the DefaultMapper static property. The default mapper only works on a default assembly list. No specific information about assemblies (as is specified in constructors) is used.