Skip to Main Content
Windows Store App Development: C# and XAML
book

Windows Store App Development: C# and XAML

by Pete Brown
June 2013
Intermediate to advanced content levelIntermediate to advanced
624 pages
20h 56m
English
Manning Publications
Content preview from Windows Store App Development: C# and XAML

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Windows 8.1 Apps with XAML and C# Unleashed

Windows 8.1 Apps with XAML and C# Unleashed

Adam Nathan
Pro Windows 8.1 Development with XAML and C#

Pro Windows 8.1 Development with XAML and C#

Jesse Liberty, Philip Japikse, Jon Galloway

Publisher Resources

ISBN: 9781617290947Publisher SupportPublisher WebsitePurchase LinkOther