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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.