简体   繁体   中英

WP7 project on WP8

We wan't to support both platforms, because the code is 100% portable to Windows Phone 7 from our Windows Phone 8 project, but i have noticed a strange problem.

So to support both platforms we need to create WP7 project and it will be installable on WP8, but:

On small devices like WVGA, application looks normal, but when i open it on 720p it doesn't use 100% height.

Example:

WVGA720P

What the hell? If i open the same xaml in WP8 project all works perfect.

PS Full design is rubber - no hardcode in pixels or %. How to fix it?

Unfortunately, this is not possible. The WP7 apps running on WP8 devices are constrained in a 480x800 container.

To take advantage of the 720p screen, you'll have to build a WP8 version of your app.

That's because the different screen sizes and screen ratios. WP8 can run WP7 Apps, but at certain resolutions it uses a black rectangle to avoid lengthening the screen.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM