Share via


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
XamlFilePathAttribute

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

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