2

How to write code for landscape or portrait through programatically.i need to set my app only run in portrait mode only.please tell me .

4

2 回答 2

1

您可以更改它并使其仅在文件中纵向运行package.appxmanifest。但请注意,这不适用于模拟器或任何其他没有硬件加速度计的设备。

设置

更多的

于 2012-10-29T05:35:53.910 回答
0

将 SupportedOrientations 、 Orintation 属性设置为 Portrait(在 xaml 中)。

于 2015-02-04T06:53:22.373 回答