Reputation: 2187
I used the examples below to retrieve a device's resolution, but it doesn't seem to be returning correct data. For example, my device is a Lumia 920, which has a resolution of 1280x768, but the code below returns 800x480. Does anyone know what I'm doing wrong or know of an alternative method for retrieving the correct resolution?
Application.Current.Host.Content.ActualWidth
Application.Current.Host.Content.ActualHeight
Upvotes: 1
Views: 505
Reputation: 1643
I hope this will help you for resolutions size for WP8 Devices
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206974%28v=vs.105%29.aspx
Upvotes: 0
Reputation: 2291
You can use ScaleFactor property to retrieve screen resolution. This article helps you.
Also see this topic.
Upvotes: 1