locked
Handling screen resolution

    Question

  • In order to run my Metro style app correctly on all possible screen resolutions, should I programmatically adjust the controls or is there any other method by which it will be automatically handled? I have seen that when run in simulator debugger the app adjusts automatically to all screen resolutions. But when I change the screen resolution in my PC( when not run in simulator), I cannot see the controls fully and there are cut off issues. How can this be handled programatically so that all the controls and the full UI are fully visible when run on PC?
    Sunday, August 05, 2012 4:53 PM

Answers

  • The specific details will depend on the app. Some apps can use relative layout controls to stretch or contract to handle the space well. Others will need to change the layout by showing or hiding different control sets, moving controls around, etc.

    As an example, the wizard based grid apps swap their GridView for a ListView when in Snapped mode. Portrait view is also a likely candidate to require a different layout.

    See Guidelines for scaling to screens for more information.

    --Rob

    • Proposed as answer by Jesse Jiang Tuesday, August 07, 2012 7:28 AM
    • Marked as answer by Jesse Jiang Friday, August 10, 2012 7:17 AM
    Sunday, August 05, 2012 7:18 PM
    Owner