Microsoft.Maui.Controls.Xaml Namespace

Provides interfaces and classed that form the XAML binding and parsing engine.

Classes

Name Description
AcceptEmptyServiceProviderAttribute

Tells the XAML parser and compiler that they may ignore supplied service providers in methods and constructors in the attributed class.

AppThemeBindingExtension

Provides a XAML markup extension that creates a binding with different values for light and dark themes.

ArrayExtension

Provides a XAML markup extension that creates an array of objects.

BindingExtension

Provides a XAML markup extension that creates a Binding from a XAML attribute value.

DataTemplateExtension

Provides a XAML markup extension that creates a DataTemplate for a specified type.

DynamicResourceExtension

Provides a XAML markup extension that creates a DynamicResource for dynamic resource lookup.

Extensions

Provides extension methods for loading XAML into objects.

FontImageExtension

Provides a XAML markup extension that creates a font image. Use FontImageSource instead.

NullExtension

Provides a XAML markup extension that returns null.

OnIdiomExtension

Provides a XAML markup extension that returns different values depending on the device idiom.

OnPlatformExtension

Provides a XAML markup extension that returns different values depending on the platform the app is running on.

ReferenceExtension

Provides a XAML markup extension that returns an object by its x:Name from the current XAML namescope.

RelativeSourceExtension

Provides a XAML markup extension that returns a RelativeBindingSource for relative bindings.

RequireServiceAttribute
ResourceDictionaryHelpers
StaticExtension

Provides a XAML markup extension that returns the value of a static field or property.

StaticResourceExtension

Provides a XAML markup extension that resolves a resource from a ResourceDictionary.

StyleSheetExtension

Provides a XAML markup extension that loads a CSS style sheet from a source or inline content.

TemplateBindingExtension

Provides a XAML markup extension that creates a binding to the templated parent.

TypeExtension

Provides a XAML markup extension that returns a Type object for a specified type name.

XamlCompilationAttribute
XamlComponentRegistry

Runtime registry that maps live page/view instances to their child components by stable node ID. Used by XSG-generated InitializeComponent() and UpdateComponent() methods to find live objects during incremental XAML Hot Reload without re-inflation.

XamlFilePathAttribute

Specifies the file path of the XAML file associated with a type.

XamlIncrementalHotReloadHandler

SDK-level [MetadataUpdateHandler] for XAML Incremental Hot Reload. Looks up live page instances via GetInstances(Type) and invokes the generated UpdateComponent() method on the main thread when metadata is updated.

XamlParseException

Exception that is raised when the XAML parser encounters a XAML error.

XamlResourceIdAttribute

Maps a XAML resource ID to its path and associated type.

XmlLineInfo

Provides line and position information for XAML parsing.

Interfaces

Name Description
IMarkupExtension
IMarkupExtension<T>
IProvideValueTarget
IReferenceProvider
IRootObjectProvider
IValueProvider
IXamlDataTypeProvider
IXamlTypeResolver
IXmlLineInfoProvider

Enums

Name Description
XamlCompilationOptions