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)

Syntax

Public Enumeration PageOrientation
public enum PageOrientation
<object property="enumerationValue" .../>

Members

Member name Description
None No orientation is specified.
Portrait Portrait orientation.
Landscape Landscape orientation.
PortraitUp Portrait orientation.
PortraitDown Portrait orientation. This orientation is never used.
LandscapeLeft Landscape orientation with the top of the page rotated to the left.
LandscapeRight Landscape orientation with the top of the page rotated to the right.

Remarks

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.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

Microsoft.Phone.Controls Namespace