What's in this chapter?
Features shared by all XAML platforms
The XAML markup language
The layout system
Building user interfaces via composition
Resources in XAML
Data templating and ItemControls
The wrox.com code downloads for this chapter are found at www.wrox.com/remtitle.cgi?isbn=9781118314456 on the Download Code tab. The code is in the chapter 12 download and individually named according to the names throughout the chapter.
XAML has become a mainstream way of creating user interfaces in Visual Studio. There are currently three different user interface technology platforms which use the XAML markup language: Windows Presentation Foundation (WPF), Silverlight, and Window 8 / WinRT.
These platforms vary in many details. Visual elements in one platform may not be available in another. For example, WPF and Silverlight libraries contain a DataGrid element, but the WinRT libraries do not have such an element.
However, many basic concepts are the same in all three platforms. These include layout and composition of user interfaces, working with data, and styling. This chapter will cover those aspects of XAML that all three platforms have in common.
The examples shown in the chapter will work in all three platforms, though occasionally minor changes may be needed for a particular platform. The code downloads for this chapter will contain the examples done in each platform.