仿真器为所有设备返回相同的屏幕分辨率 [英] Emulator returns same screen resolution for all devices

查看:104
本文介绍了仿真器为所有设备返回相同的屏幕分辨率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

微软什么时候会修复这个错误?



无论我选择哪种仿真器设备,我都会得到相同的宽度和高度。

解决方案

如果您正在检查" Application.Current.Host.Content.ActualWidth "这实际上将是DIP(设备无关的像素)分辨率,并且对于
所有设备将是相同的。 将其视为逻辑分辨率,而不是物理分辨率。)


http://jader3rd.wordpress.com/


-Mark


When will Microsoft fix this bug?

No matter what emulator device I choose, I always get the same width and height.

解决方案

If you are inspecting "Application.Current.Host.Content.ActualWidth" this is actually will be DIP (Device Independent Pixels) resolution and will be the same for all devices. Think of it as a logical resolution, not a physical resolution).

http://jader3rd.wordpress.com/

-Mark


这篇关于仿真器为所有设备返回相同的屏幕分辨率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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