IXamlNamespaceResolver Interface
Describes a service that can return a XAML namespace that is based on its prefix as it is mapped in XAML markup.
Assembly: System.Xaml (in System.Xaml.dll)
The IXamlNamespaceResolver type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | GetNamespace | Retrieves a XAML namespace identifier for the specified prefix string. |
![]() | GetNamespacePrefixes | Returns all the possible prefix-to-XAML namespace mappings (NamespaceDeclaration values) that are available in the active XAML schema context. |
Type converters and markup extensions can query for IXamlNamespaceResolver as a service on the service context that is provided by a XAML object writer, when the XAML object writer invokes value conversion behavior. For more information, see Type Converters and Markup Extensions for XAML and Service Contexts Available to Type Converters and Markup Extensions.
WPF Usage Notes
This interface is also implemented as part of the WPF XAML implementation in the XmlnsDictionary class. XmlnsDictionary stores XAML namespace information and interacts with XAML processors to forward that information to the service context through the same IXamlTypeResolver interface.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
