---
title: "XAML"  
description: "In this blog I am trying to explain the concept of XAML.  XAML stands for Extensible Application Markup Language and it is a declarative markup langua"  
author: "Vijay Shukla"  
published: 2013-08-16  
updated: 2014-09-18  
canonical: https://www.mindstick.com/blog/567/xaml  
category: "xaml"  
tags: ["xaml"]  
reading_time: 2 minutes  

---

# XAML

In this blog I [am trying](https://answers.mindstick.com/qa/36834/which-two-programming-languages-should-i-master-in-if-i-am-trying-to-get-into-google-or-facebook) to [explain the concept](https://www.mindstick.com/forum/159605/explain-the-concept-of-unique-key-violation-error) of XAML.\

XAML stands for Extensible [Application](https://www.mindstick.com/articles/12824/calculator-application-in-android) [Markup Language](https://www.mindstick.com/interview/234/what-is-markup-language) and it is a declarative markup language. As applied to the .NET Framework [programming](https://www.mindstick.com/articles/12214/web-development-company-in-india-laid-on-the-foundation-of-concrete-java-programming) model, XAML simplifies creating a UI for a .NET Framework application. You can create visible UI elements in the declarative XAML markup, and then separate the UI definition from the run-time logic by using code-behind files, joined to the markup through [partial class](https://www.mindstick.com/forum/155717/define-partial-class-in-mvc) definitions. XAML directly represents the instantiation of objects in a specific set of backing types defined in assemblies. This is unlike most other markup languages, which are typically an [interpreted language](https://www.mindstick.com/forum/161513/how-is-python-an-interpreted-language) without such a direct tie to a backing type system. XAML enables a workflow where separate parties can work on the UI and the logic of an application, using potentially different tools.

When represented as text, XAML files are XML files that generally have the .xaml extension. The files can be encoded by any XML encoding, but encoding as UTF-8 is typical.

The following example shows how you might create a [button as](https://answers.mindstick.com/qa/32548/do-you-ever-use-the-favorite-button-as-a-bookmark-on-twitter) part of a UI. This example is just intended to give you a flavor of how XAML represents common UI programming metaphors (it is not a complete sample).

##### XAML

```
<Grid>
  <Button Content="Click Me!"/>
</Grid >
```

##### Properties

Properties of an object can often be expressed as [attributes](https://www.mindstick.com/articles/13105/2-attributes-that-make-your-odoo-ecommerce-theme-productive-and-engaging) of the object element. An attribute syntax names the property that is being set in attribute syntax, followed by the [assignment](https://www.mindstick.com/articles/126300/apa-citation-style-get-to-know-about-it-for-your-next-assignment) operator (=). The value of an attribute is always specified as a string that is contained within quotation marks.

```
<Button Background="Red" Foreground="White" Content="Click Me!"/>
```

---

Original Source: https://www.mindstick.com/blog/567/xaml

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
