Month: February 2012

  • Windows Phone 7开发-屏幕自动翻转

    在Window Phone下开发应用,默认情况下页面总是竖屏垂直显示。如果要让屏幕根据当前旋转设置,只需要在XAML页面的头部设置如下属性即可 SupportedOrientations=”PortraitOrLandscape” Orientation=”Portrait” SupportedOrientations用于指定页面显示的方向,支持的选项分别为,Portrait(竖屏),Landscape(横屏),PortraitOrLandscape(自动翻转) Orientation 用于指定页面加载时默认的显示模式,支持的选项和SupportedOrientations一样。