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 4 and 6 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
  • Congratulations on winning the May TechNet Guru contest! blogs.technet.com/.../technet-guru-awards-may-2013.aspx

  • Thanks Ed Price :)

  • Congratulations on being featured on the home page of TechNet Wiki: social.technet.microsoft.com/.../default.aspx

  • Thanks once again :)

  • Ed Price - MSFT edited Revision 8. Comment: Spelling in title

  • I featured your article on MSDN here: blogs.msdn.com/.../windows-phone-development-guru-retrieving-the-screen-resolution-for-windows-phone-8-emulator.aspx

    Thanks!

  • And finally we featured your article on the TechNet Wiki blog here: blogs.technet.com/.../may-windows-phone-dev-guru-retrieving-the-screen-resolution-for-windows-phone-8-emulator.aspx

    Thanks!

Page 1 of 1 (7 items)