Windows.UI.Xaml.Markup namespace

Applies to Windows and Windows Phone

Provides XAML language support API for Windows Store apps and the Windows Runtime.

Members

The Windows.UI.Xaml.Markup namespace has these types of members:

Attributes

The Windows.UI.Xaml.Markup namespace has these attributes.

AttributeDescription
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.

 

Classes

The Windows.UI.Xaml.Markup namespace has these classes.

ClassDescription
XamlBinaryWriter Produces a pre-parsed binary representation of a XAML production.
XamlParseException The exception that is thrown when an error occurs while parsing XAML.
XamlReader Provides a XAML processor engine for parsing XAML and creating corresponding object trees.

 

Interfaces

The Windows.UI.Xaml.Markup namespace defines these interfaces.

InterfaceDescription
IComponentConnector Provides infrastructure support for event wiring and build actions.
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 schema context concepts that support XAML parsing.
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.

 

Structures

The Windows.UI.Xaml.Markup namespace has these structures.

StructureDescription
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.

 

Remarks

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

  • XamlParseException is the specialized exception that is thrown by the Windows Runtime XAML parser in cases where it attempts to load XAML but can't generate the expected run-time object tree from that XAML. Most of the time any problems with XAML are detectable at design-time, but it's still possible for problems to occur that would only be known at run-time, in which case you get a XamlParseException. XamlParseException is only thrown if your app is written using C# or Microsoft Visual Basic (Visual C++ component extensions (C++/CX) uses Platform::COMException instead).
  • 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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Markup
Windows::UI::Xaml::Markup [C++]

Metadata

Windows.winmd

See also

XAML overview

 

 

Show:
© 2014 Microsoft