O'Reilly logo

Windows Store App Development: C# and XAML by Pete Brown

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

Chapter 5. Layout

This chapter covers

  • The layout system
  • Alignment, margins, and padding
  • Layout rounding
  • Performance considerations

Layout systems across different technologies vary greatly in complexity. Take, for example, the Windows Forms layout system. Fundamentally, that layout system involves absolute X and Y coordinate pairs and an explicit or implicit Z order. Controls can overlap, get clipped (cut off or cropped) on the edge of the window, or even get obscured. The algorithm is pretty simple—sort by Z order (distance from the viewer) and then transfer the pixels to the screen.

For another example, look to HTML and CSS. HTML and CSS support elements that must size to content and page constraints (tables, divs) as well as support ...

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