O'Reilly logo

XAML Unleashed by Adam Nathan

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

Scaling

Although scrolling is a popular and long-standing way to deal with large content, dynamically shrinking or enlarging content to “just fit” in a given space is more appropriate for several scenarios. For example, it doesn’t make sense for most games to change the shape of their game surface. Whether the game board or playing field must maintain a specific aspect ratio, or you want to avoid giving widescreen players an unfair advantage by seeing more of the scrolling world ahead, the typical approach is to scale up the game surface as much as possible and use letterboxing to fill any extra space (or perhaps show extra UI elements like game stats). If your app uses vector graphics, then you can scale to your heart’s content. If it uses bitmaps, ...

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