Universal App Windows Phone Orientation

前端 未结 1 1284
春和景丽
春和景丽 2021-01-25 07:32

Recently I was developing a Universal app for both the Windows Phone and Windows Store. In that app, I was trying to fix the Orientation of the App to Landscape. But in WinRT ba

1条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-25 07:58

    Under WinRT you can have a look at DisplayInformation class, where you will find probably all you need.

    You can also declare your supported rotations in Package.appxmanifest file in Supported rotations.

    Here you can download an example of an App with three Pages, each with different orientation.

    0 讨论(0)
提交回复
热议问题