PageOrientation Enumeration

PageOrientation Enumeration

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft