XamlTypeMapper.DefaultMapper Property

Definition

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

C#
public static System.Windows.Markup.XamlTypeMapper DefaultMapper { get; }

Property Value

The default type mapper.

Remarks

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.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10