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.
All panel classes, as well as elements and controls described later, are assumed to exist in the
Windows::UI::Xaml::Controls namespace, ...