DisplayInformation.CurrentOrientation Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the current orientation of a rectangular monitor.
public:
property DisplayOrientations CurrentOrientation { DisplayOrientations get(); };
DisplayOrientations CurrentOrientation();
public DisplayOrientations CurrentOrientation { get; }
var displayOrientations = displayInformation.currentOrientation;
Public ReadOnly Property CurrentOrientation As DisplayOrientations
Property Value
The current orientation of a rectangular monitor.
Remarks
The value of the DisplayInformation.CurrentOrientation property corresponds to the orientation of the display or monitor and not necessarily to the orientation of your app. To determine the orientation of your app for layout purposes, use the ApplicationView.Value property.