Controlling orientation

The application's orientation can be controlled using the DisplayInformation class, more specifically, the static AutoRotationPreferences property.

Controlling Orientation on iOS

In order for the DisplayInformation's AutoRotationPreferences to work properly, you need to ensure that all potential orientations are supported within the iOS application's info.plist file.

Warning

On iOS 9 and above, the system does not allow iPad applications to dictate their orientation if they support Multitasking / Split View. In order to control orientation through the DisplayInformation class, you will need to opt-out of Multitasking / Split View by ensuring that you have defined the following in your info.plist:

<key>UIRequiresFullScreen</key>
<true/>