Microsoft.UI.Xaml.Markup Namespace

Provides XAML language support API for UWP app and the Windows Runtime.

Classes

ContentPropertyAttribute

Indicates which property of a type is the XAML content property. A XAML processor uses this information when processing XAML child elements of XAML representations of the attributed type.

FullXamlMetadataProviderAttribute

Indicates that the XAML metadata in a component library is complete.

MarkupExtension

Provides a base class for XAML markup extension implementations.

MarkupExtensionReturnTypeAttribute

Reports the type that a markup extension can return.

ProvideValueTargetProperty

Provides information about the target property of a markup extension.

XamlBinaryWriter

Produces a pre-parsed binary representation of a XAML production.

XamlBindingHelper

Provides helper methods for data binding.

XamlMarkupHelper

Provides helper methods for the XAML compiler.

XamlReader

Provides a XAML processor engine for parsing XAML and creating corresponding object trees.

Structs

XamlBinaryWriterErrorInformation

Records error information produced by calls to XamlBinaryWriter.Write.

XmlnsDefinition

Specifies a mapping on a per-assembly basis between a XAML namespace and a library-code namespace for backing types, which is then used for type resolution by a XAML object writer or XAML schema context.

Interfaces

IComponentConnector

Provides infrastructure support for event wiring and build actions.

IDataTemplateComponent

Provides methods that enable the XAML parser to communicate with generated binding code.

IProvideValueTarget

Represents a service that reports situational object-property relationships for markup extension evaluation.

IRootObjectProvider

Describes a service that can return the root object of markup being parsed.

IUriContext

Represents a service that can use application context to resolve a relative URI to an absolute URI.

IXamlBindScopeDiagnostics

Provides methods that enable a debugger to disable generated binding code.

IXamlMember

Provides the means to report XAML-type system specifics about XAML members. Using this interface contract, XAML parsers can load any custom types and members thereof that are defined in your app and are referenced in XAML files.

IXamlMetadataProvider

Implements XAML type resolution and provides the mapping between types used in markup and the corresponding classes implemented in an application or component.

IXamlType

Provides the means to report XAML-type system specifics about XAML types. Using this interface contract, XAML parsers can load any custom types and members thereof that are defined in your app and are referenced in XAML files.

IXamlTypeResolver

Represents a service that resolves from named elements in XAML markup to the appropriate CLR type.

Remarks

Many of the types in this namespace are infrastructure or types that support uncommon scenarios. But there is one type in this namespace that apps might use in more typical app scenarios.

  • XamlReader is a static class that can parse XAML and produce object trees. This class enables run-time access to the Windows Runtime XAML parser, the same parser that's used when XAML UI definition pages are parsed into object representations when an app starts. You can then connect the generated object tree to other existing UI elements and make the new objects appear in your UI.

See also