I have already specified in the manifest as Landscape and LandscapeFlipped, I know this is just a preference and on top of this I've added the below code in the App.xaml.cs OnLaunched. But yet when tested on a tablet the app goes back to portrait mode.
DisplayInformation.AutoRotationPreferences =
DisplayOrientations.Landscape | DisplayOrientations.LandscapeFlipped;
Also is there any alternative way I could test this in a simulator instead of an actual tablet/device?
Thanks in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…