Chapter 4. Page Orientation

In This Chapter

Assigning element Visibility based on page orientation

Changing page orientation at runtime

Animation using the VisualStateManager

Page animation using a custom PhoneApplicationFrame

Animating page transitions

Pages in Silverlight for Windows Phone apps can support either the landscape or portrait orientation, or both. When creating a page that supports both orientations, it is prudent to define the UI in XAML in such a way that it produces the layout you want in either orientation without relying on code-beside. Fortunately, Silverlight’s dynamic layout system makes it easy to build pages that can support both orientations. The Grid and StackPanel elements, for example, resize themselves ...

Get Windows® Phone 7.5 Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.