ApplicationView.Orientation ApplicationView.Orientation ApplicationView.Orientation ApplicationView.Orientation ApplicationView.Orientation Property

Definition

Gets the current orientation (landscape or portrait) of the window (app view) with respect to the display.

public : ApplicationViewOrientation Orientation { get; }
ApplicationViewOrientation Orientation();
public ApplicationViewOrientation Orientation { get; }
Public ReadOnly Property Orientation As ApplicationViewOrientation
var applicationViewOrientation = applicationView.orientation;

Property Value

Remarks

For an example of using the Orientation property, see the Application Views sample.

The property is a nonstatic member of the window object. For JavaScript, this means that it is a method of the window object that getForCurrentView creates, not of the ApplicationView class.