Windows Phone 8上Windows Phone 7应用的最高利润问题 [英] top margin issue for windows phone 7 apps on windows phone 8

查看:54
本文介绍了Windows Phone 8上Windows Phone 7应用的最高利润问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用7.1 SDK开发的Windows Phone 7应用程序占据了wp7的整个屏幕.但是,在Windows Phone 8中打开同一应用程序时,其顶部显示出一些额外的利润,因为我的应用程序无法使用顶部的空间.任何的想法 如何解决此问题?

解决方案

这是预期的行为,符合设计要求.您的WP7应用以480x800的单个分辨率运行.当它在WP8设备上运行时,将缩放480x800以适合物理屏幕分辨率.对于WXGA屏幕(768x1280,例如Nokia Lumia 920),WP7分辨率 缩放至1.6倍以完美填满屏幕.但是是720p屏幕(720x1280,   e.g. HTC 8X)具有不同的宽高比.当480x800缩放为1.5倍时,它将填充720的宽度,但仅填充1200的高度,从而留下了多余的空间,对于WP7应用程序来说是空白且无法访问.

这是一个偶尔出现的主题,例如
http://social.msdn.microsoft.com/Forums/zh-CN/wpdevelop/thread/ca30d688-b7e4-47f8-b552-a09666e9e126


The windows phone 7 application which I developed using 7.1 SDK occupies the entire screen on wp7. But the same application when opened in Windows Phone 8 shows some extra margin on top because of which my app was not able use the space on top. Any idea how to fix this?

解决方案

That's expected behavior, and as designed. Your WP7 app operates at a single resolution, 480x800. When it is running on a WP8 device, 480x800 is scaled to fit the physical screen resolution. For a WXGA screen (768x1280, e.g. Nokia Lumia 920), the WP7 resolution scales at 1.6x to fill the screen perfectly. However a 720p screen (720x1280,  e.g. HTC 8X) has a different aspect ratio. When 480x800 is scaled at 1.5x, it fills the 720 width but only 1200 height, leaving extra space that is left blank and inaccessible for a WP7 app.

This is a topic that comes up occasionally, e.g.
http://social.msdn.microsoft.com/Forums/en-US/wpdevelop/thread/ca30d688-b7e4-47f8-b552-a09666e9e126


这篇关于Windows Phone 8上Windows Phone 7应用的最高利润问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆