O'Reilly logo

Programming the Windows Runtime by Example: A Comprehensive Guide to WinRT with Examples in C# and XAML by John Garland, Jeremy Likness

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

3. Layouts and Controls

Layouts and controls are the building blocks of the user interface for Windows Store apps. You declare these building blocks using Extensible Application Markup Language (XAML, pronounced “zammel”). XAML is an open specification1 that provides a declarative syntax for instantiating objects and setting their properties. XAML was originally used to declare the UI for WPF applications and was later included with Silverlight. The Windows Runtime extends XAML with the ability to create and set properties on WinRT components.

1 XAML Object Mapping Specification http://bit.ly/XRX03O

Elements in XAML documents represent objects. The following XAML snippet defines a Rectangle instance.

<Rectangle/>

It is the equivalent of instantiating ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required