Language
Edit

XamlApplicationExtensions Class

Definition

XamlApplication is a custom Windows.UI.Xaml.Application that implements Windows.UI.Xaml.Markup.IXamlMetadataProvider. The metadata provider implemented on the application is known as the 'root metadata provider'. This provider has the responsibility of loading all other metadata for custom UWP XAML types. In this implementation, reflection is used at runtime to probe for metadata providers in the working directory, allowing any type that includes metadata (compiled in to a .NET framework assembly) to be used without explicit metadata handling by the developer.

public static class XamlApplicationExtensions
type XamlApplicationExtensions = class
Public Class XamlApplicationExtensions
Inheritance
XamlApplicationExtensions

Methods

Name Description
GetOrCreateXamlMetadataContainer()

Gets and returns the current UWP XAML Application instance in a reference parameter. If the current XAML Application instance has not been created for the process (is null), a new XamlApplication instance is created and returned.

Applies to