4
我想保持页面的方向始终相同,例如SupportedOrientations =“Portrait”。但我想检测屏幕方向的变化。可能吗? 我累了OrientationChanged =“PhoneApplicationPage_OrientationChanged”,但它不起作用。我必须使用加速计还是有更简单的方法来检测它?WP7当SupportedOrientations =“Portrait”时检测屏幕方向变化
我想保持页面的方向始终相同,例如SupportedOrientations =“Portrait”。但我想检测屏幕方向的变化。可能吗? 我累了OrientationChanged =“PhoneApplicationPage_OrientationChanged”,但它不起作用。我必须使用加速计还是有更简单的方法来检测它?WP7当SupportedOrientations =“Portrait”时检测屏幕方向变化
@heavyauto
Page orientations在Windows Phone 7的..Maybe这是使用全向您
的可能重复[在Windows Phone设备方向8](http://stackoverflow.com/questions/13740443/device-orientation-in-windows-phone-8) – 2013-03-26 16:07:19
是的,你必须使用加速度计。 – 2013-03-26 21:27:33