Chapter 4. Presentation with Panels

A Windows Runtime program generally consists of one or more classes that derive from Page. Each page contains a visual tree of elements connected in a parent-child hierarchy. A Page object can have only one child set to its Content property, but in most cases this child is an instance of a class that derives from Panel. Panel defines a property named Children that is of type UIElementCollection—a collection of UIElement derivatives, including other panels.

These Panel derivatives form the core of the Windows Runtime dynamic layout system. As the size or orientation of a page changes, panels can reorganize their children to optimally fill the available space. Each type of panel arranges its children differently. ...

Get Programming Windows®, Six Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.