From the course: Microsoft XAML: 1 Core Concepts

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Overview of XAML concepts

Overview of XAML concepts

From the course: Microsoft XAML: 1 Core Concepts

Start my 1-month free trial

Overview of XAML concepts

- [Instructor] XAML is XML, so it follows all the rules of XML files. It also has its own special syntax that augments the XML rules. Here are some examples of XAML specific XML. Whenever XML has a predefined list of elements, and attributes, it will contain an XML namespace declaration. Typically, these are defined in the root element. You can see three namespace is defined in this file. The first one, the one I've highlighted, is the default WPF namespace. All the standard WPF elements and attributes are located here, that allows me to use this grid element, and this button element, and this textbox element in my XAML. This namespace also tells the XML parser what dot net namespace is to look in to resolve the element name to a dot net type. This is the XAML namespace. It contains XAML language items, ones that make sense to the XAML parser, and not specifically tied to WPF, or Silverlight, or other XAML flavors. Line three is an example of a custom namespace. This allows me to…

Contents