Dela via


ApplicationViewOrientation Enum

Definition

Defines the set of display orientation modes for a window (app view).

public enum class ApplicationViewOrientation
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class ApplicationViewOrientation
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum ApplicationViewOrientation
var value = Windows.UI.ViewManagement.ApplicationViewOrientation.landscape
Public Enum ApplicationViewOrientation
Inheritance
ApplicationViewOrientation
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
Landscape 0

The window is in landscape orientation, with the display width greater than the height.

Portrait 1

The window is in portrait orientation, with the display height greater than the width.

Applies to