1 out of 3 rated this helpful - Rate this topic

PageOrientation Enumeration

July 26, 2012

An enumeration defining the possible orientations of a page.

Namespace:  Microsoft.Phone.Controls
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
public enum PageOrientation
<object property="enumerationValue" .../>
Member nameDescription
NoneNo orientation is specified.
PortraitPortrait orientation.
LandscapeLandscape orientation.
PortraitUpPortrait orientation.
PortraitDownPortrait orientation. This orientation is never used.
LandscapeLeftLandscape orientation with the top of the page rotated to the left.
LandscapeRightLandscape orientation with the top of the page rotated to the right.

The ideal way to check for orientation in your application is to check the bit flag Portrait, check the bit flag Landscape, or check for both LandscapeLeft and LandscapeRight. However, you should not check for only LandscapeLeft or only LandscapeRight.

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.