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
Available since 3.0
Return to top