Search⌘ K
AI Features

Basic XAML Syntax

Explore the basics of XAML syntax used in .NET MAUI to define user interfaces. Understand how elements represent classes, how attributes set properties, and how markup extensions enhance UI definitions. Gain the knowledge to read and compose XAML files for cross-platform app development.

XAML is the dialect of XML that .NET MAUI uses as the markup language to define user interfaces. It adheres to a specific MAUI schema. This schema defines which elements can be used inside the markup. A noteworthy feature of MAUI-specific XAML schema is that almost all elements represent classes. For example, the <ContentPage /> element corresponds to the ContentPage class. The <App /> element corresponds to the App class. And it's true for almost all other elements. ...