积极答复者
如何获取尺寸比例,及对比度信息

问题
答案
-
通过Window.Current.Bounds可以获取到应用程序窗体的宽和高(Window.Current.Bounds.Width和Window.Current.Bounds.Height)。
专注Windows Phone开发
- 已标记为答案 Aaron XueModerator 2012年10月30日 9:20
-
Hi,
具体的设备信息能够在Store app中能获得的非常少,比例尺寸,对比度是无法获得的。但是你可以按照楼上方法通过整个app的高和宽来获得屏幕的高和宽,对比度的话无法获得显示器的对比度信息只能够获得是否开启了高对比度模式,参考:
http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.viewmanagement.accessibilitysettings
Hope this helps
Aaron Xue [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 Aaron XueModerator 2012年10月30日 9:20
全部回复
-
通过Window.Current.Bounds可以获取到应用程序窗体的宽和高(Window.Current.Bounds.Width和Window.Current.Bounds.Height)。
专注Windows Phone开发
- 已标记为答案 Aaron XueModerator 2012年10月30日 9:20
-
Hi,
具体的设备信息能够在Store app中能获得的非常少,比例尺寸,对比度是无法获得的。但是你可以按照楼上方法通过整个app的高和宽来获得屏幕的高和宽,对比度的话无法获得显示器的对比度信息只能够获得是否开启了高对比度模式,参考:
http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.viewmanagement.accessibilitysettings
Hope this helps
Aaron Xue [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 Aaron XueModerator 2012年10月30日 9:20