如何在 Windows Phone 7 系列上获取屏幕尺寸? [英] How to get screen size on Windows Phone 7 Series?

查看:23
本文介绍了如何在 Windows Phone 7 系列上获取屏幕尺寸?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何以编程方式获取 WP7 上的屏幕分辨率?下面是一堆在桌面 WPF 和 Silverlight 中完成相同工作的链接,但它们都不在电话 SDK 中.

How do I programatically get the screen resolution on WP7? Here are a bunch of links that get the same job done in desktop WPF and Silverlight, but none of them are in the Phone SDK.

有什么想法吗?

http:///social.msdn.microsoft.com/Forums/en-US/windowsphone7series/thread/f0639904-a368-44db-9ddd-efcaf8fc736e
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/6b6b832f-0dfd-428c-84cd-b1b9e7f236cf
如何获取活动屏幕尺寸?
http://social.msdn.microsoft.com/Forums/en-US/windowsphone7series/thread/f0639904-a368-44db-9ddd-efcaf8fc736e

推荐答案

看起来 Application.Current.RootVisual.RenderSize 会为您提供该信息.

It looks like Application.Current.RootVisual.RenderSize will give you that information.

这篇关于如何在 Windows Phone 7 系列上获取屏幕尺寸?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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