IXamlMetadataProvider Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Implements XAML type resolution and provides the mapping between types used in markup and the corresponding classes implemented in an application or component.
public interface class IXamlMetadataProvider
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(2841793008, 8724, 23891, 135, 70, 206, 153, 162, 89, 60, 215)]
struct IXamlMetadataProvider
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.Guid(2841793008, 8724, 23891, 135, 70, 206, 153, 162, 89, 60, 215)]
public interface IXamlMetadataProvider
Public Interface IXamlMetadataProvider
- Derived
- Attributes
Remarks
The XAML compiler generates implementations of the interface within each component (application, library, or WinRT component) that uses XAML. In applications, the implementation is generated on the application object itself. For libraries and WinRT components, the implementation is generated on an anonymous class created by the XAML compiler. Each IXamlMetadataProvider implementation provides type information for the controls defined in the component it's generated in.
For more info on IXamlMetadataProvider, IXamlType and IXamlMember and how these are used for XAML custom types, see "Remarks" section of IXamlType.
Methods
GetXamlType(String) |
Implements XAML schema context access to underlying type mapping, based on specifying a full type name. |
GetXamlType(TypeName) |
Implements XAML schema context access to underlying type mapping, based on providing a helper value that describes a type. |
GetXmlnsDefinitions() |
Gets the set of XMLNS (XAML namespace) definitions that apply to the context. |