I want to detect if a device uses WVGA, WXGA, 720p or 1080p resolution. In addition, I want to store the resolution of the device in a variable. For example, if the resolution is 800x480 pixel, then the variable has the value: string CurrentResolution = "720p".
How can I do that? How can I detect the screen resolution of a Windows Phone device?