Extensible Application Markup Language (XAML) is an XML language used for defining user interfaces in WPF and Silverlight.

Definition (Wikipedia):

Extensible Application Markup Language is a declarative XML-based language developed by Microsoft that is used for initializing structured values and objects.

Definition (MSDN):

XAML is a declarative markup language. As applied to the .NET Framework programming model, XAML simplifies creating a UI for a .NET Framework application.

Sample button:

<Button Content="Click Me"/>

In C# this would be:

Button btn = new Button();
btn.Content = "Click Me";
//or
var btn = new Button { Content = "Click Me" };

Advantages:

All you can do in XAML can also be done in code but declaring the UI in XAML has some advantages:

  • XAML code is short and clear to read
  • Separation of designer code and logic

More reading:

Code Language (used for syntax highlighting): lang-xml