Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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 .
您可以更改它并使其仅在文件中纵向运行package.appxmanifest。但请注意,这不适用于模拟器或任何其他没有硬件加速度计的设备。
package.appxmanifest
更多的
将 SupportedOrientations 、 Orintation 属性设置为 Portrait(在 xaml 中)。