Tag: device resolution

How to get the Windows Phone 8 device resolution?

In Windows Phone 8, the developers can utilize the App.Current.Host.Content.ScaleFactor to get the Windows Phone 8 device resolution. How to get the Windows Phone 8 device resolution? Below is a sample code snippet demonstrating how to retrieve the Windows Phone 8 device resolution. The returning value of the ScaleFactor function is 100, 150, and 160 which refers to the resolutions WVGA, 720P, WXGA respectively.