XamlTypeMapper.DefaultMapper Property

Gets an instance of the XamlTypeMapper to use if one has not been specified.

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

public static XamlTypeMapper DefaultMapper { get; }

Property Value

Type: System.Windows.Markup.XamlTypeMapper
The default type mapper.

The default mapper only works on a default assembly list. No specific information about assemblies (as is specified in XamlTypeMapper constructors) is used. In the current implementation the default assembly list is: WindowsBase, PresentationCore, PresentationFramework.

Using the default mapper does not mean that you cannot use custom assemblies/types in XAML at all. It only means that if you do use custom types/assemblies, you must then use the conventional XAML technique of creating the mappings as xmlns attributes in each XAML page where the types/assemblies are referenced, as opposed to a type mapper API. For more information, see XAML Namespaces and Namespace Mapping for WPF XAML.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft