How can I get a screen resolution of Device from settings (Windows Phone) ?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
This may be a better way to know what screen resolution is your app running on.
Source http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206974%28v=vs.105%29.aspx
This actually requires a combination of @Dmitriy Reznik and @Paras Wadehra's answers, as the dimensions exposed by
Host.Content
are the unscaled dimensions.That solution will work on WP7.x and WP8 devices: http://sviluppomobile.blogspot.co.at/2013/04/detect-screen-resolution-for-windows.html