I\'m entering number of screen on which I want to show the form. And I must get screen orientation. Does anybody know how to do that?
public UIManager(int scre
You can use the value from the Windows.Graphics.Display.DisplayInformation
class, returned by DisplayInformation.getForCurrentView()
and its currentOrientation
property:
DisplayOrientations currentOrientation = Windows.Graphics.Display.DisplayProperties.CurrentOrientation;
From the official doc: