O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

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

Using Flexible Layouts with the WrapPanel

WrapPanel is a flexible container that is ideally suited to the limited display size of the phone because it allows your UI elements to use space more efficiently. The WrapPanel positions child elements sequentially, from left to right or from top to bottom. When elements extend beyond the panel edge, they are positioned in the next row or column. WrapPanel can operate in one of two layout modes. The Orientation property of the WrapPanel determines its layout mode, either Horizontal (the default value) or Vertical. Figure 9.24 portrays how the WrapPanel positions its children when using a horizontal orientation.

FIGURE 9.24 WrapPanel positions child elements sequentially from left to right (as shown), ...

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