Udostępnij za pośrednictwem


IXamlMetadataProvider Interface

Definition

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(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(3010878825, 26789, 19250, 136, 97, 253, 185, 12, 31, 88, 54)]
struct IXamlMetadataProvider
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(3010878825, 26789, 19250, 136, 97, 253, 185, 12, 31, 88, 54)]
public interface IXamlMetadataProvider
Public Interface IXamlMetadataProvider
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

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.

Applies to

See also