Retrieving the Screen Resolution for Windows Phone 8 Emulator

Retrieving the Screen Resolution for Windows Phone 8 Emulator

The Windows Phone 8 supports 3 different screen resolutions like WVGA,WXGA,720P .

If you are a developer and wants to retrieve the screen resolution dynamically , you can use the ScaleFactor property defined in App.Current.Host.Content.ScaleFactor.

E.g. :

string data = App.Current.Host.Content.ScaleFactor.ToString();

This will retrieve the one of the 3 values 100 , 160 , 150 which refers to the screen resolutions (WVGA , WXGA and 720P) respectively

Reference

From this Forum thread: Screen Resolution for Emulator

Leave a Comment
  • Please add 1 and 4 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Ed Price - MSFT edited Revision 8. Comment: Spelling in title

Page 1 of 1 (1 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
Page 1 of 1 (7 items)