如何在wp7应用中检索分辨率? [英] How to retrive the resolution in wp7 app?

查看:79
本文介绍了如何在wp7应用中检索分辨率?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

当我的wp7应用程序在wp8机器上运行时,我想检索分辨率以执行某些操作,但是wp7 sdk没有像Application.Current.Host.Content.ScaleFactor这样的API来检查分辨率.

I want to retrive the resolution to do something when my wp7 app runs on wp8 machine, but wp7 sdk doesn't have API like Application.Current.Host.Content.ScaleFactor to  check the resolution.

请告诉我如何在wp7应用中获取分辨率

Please tell me how to retrive the resolution in my wp7 app

谢谢

推荐答案

如果您不为WP8重建应用程序,那么您将无法阅读分辨率,您的应用程序将针对WP8设备进行扩展.  (自动缩放可能会导致应用程序具有死"空间,您将无法在该空间中 如果屏幕比例与WP7手机不同,请添加任何用户控件.)

If you don't rebuild your application for WP8, then you won't be able to read the resolution and your application will scale for the WP8 devices.  (The automatic scaling may result in the application having a "dead" space where you won't be able to add any user controls if the screen ratio is different than on the WP7 phones.)


这篇关于如何在wp7应用中检索分辨率?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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