user3911053
user3911053

Reputation:

Windows Phone 8.1 Don't Allow App to Rotate

I don't want my app to rotate when the user flips the phone. It should stay in portrait orientation. I don't have other rotations supported in the .appxmanifest, so why would it still rotate? How would I tell it not to?

Upvotes: 0

Views: 222

Answers (1)

kober
kober

Reputation: 851

Use this

DisplayInformation.AutoRotationPreferences = DisplayOrientations.Portrait;

Upvotes: 2

Related Questions