O'Reilly logo

Mastering Windows 8 C++ App Development by Pavel Yosifovich

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

Layout panels

All layout panels must derive from the Windows::UI::Xaml::Controls::Panel class, itself deriving from FrameworkElement. The main addition Panel is the Children property (also its ContentProperty for easier XAML authoring), which is a collection of elements implementing the IVector<UIElement> interface. By using the Children property, elements can be dynamically added or removed from a Panel. WinRT provides a bunch of specific panels, each with its own layout logic, providing flexibility in creating the layout. In the following sections, we'll take a look at some of the built-in layout panels.

Note

All panel classes, as well as elements and controls described later, are assumed to exist in the Windows::UI::Xaml::Controls namespace, ...

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