Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 4. Page Orientation > Orientation and the PhoneApplicationPage Class

Orientation and the PhoneApplicationPage Class

The PhoneApplicationPage class includes two orientation related properties: SupportedOrientations and Orientation.

The SupportedOrientations attribute allows you to restrict the orientation of the page and, if set to either Portrait or Landscape, prevent the orientation from being changed when the device is rotated. If the page has been designed to support both portrait and landscape, set SupportedOrientation to PortraitOrLandscape, which allows the orientation to be switched automatically when the device is rotated.

The Orientation property indicates the actual orientation of the page and can be set only at design-time. The Orientation property is discussed in greater detail later in the chapter.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial