Redigeeri

Jagamisviis:


XamlTypeMapper.DefaultMapper Property

Definition

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

public:
 static property System::Windows::Markup::XamlTypeMapper ^ DefaultMapper { System::Windows::Markup::XamlTypeMapper ^ get(); };
public static System.Windows.Markup.XamlTypeMapper DefaultMapper { get; }
static member DefaultMapper : System.Windows.Markup.XamlTypeMapper
Public Shared ReadOnly Property DefaultMapper As XamlTypeMapper

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