locked
change the background image automatically for each size screen RRS feed

  • Question

  • Hi, I'll take same subject to post my question.

    I did all images sizes from link above (except snapped).

    Is there some way of change the background image automatically for each size screen?

    Thanks

    Friday, October 11, 2013 11:50 AM

Answers

All replies

  • Hi Fabio.

    Please post new questions on different threads. Adding to an already answered thread is a good way to get missed, even if the questions are loosely related.

    There isn't an automatic way to change the image on window size (you cant get screen size at all, but should use the window size). You would need to calculate that yourself in code. You probably want to look at the aspect ratio rather than the size itself, and you will need to be flexible since on Windows 8.1 the user can resize the window freely.

    --Rob

    Friday, October 11, 2013 2:41 PM
    Moderator
  • Do I need these three aspects only? (16:9, 16:10 , 4:3)

    Fullscreen screen size (effective pixel resolution) Device description
    1366x768 Slates, convertibles, and many laptops (16:9 aspect ratio)
    1920x1080 Large laptops and devices (16:9 aspect ratio)
    800x1280 and 1280x800 Portrait-first small devices (16:10 aspect ratio)
    1024x768 and 768x1024 Landscape-first small devices (4:3 aspect ratio)
    1371x857 and 857x1371 Small devices (16:10 aspect ratio)
    2560x1440 Very large all-in-one device (16:9 aspect ratio)


    Friday, October 11, 2013 3:49 PM
  • Those are common aspect ratios, but you'll want to be more flexible than that. On Windows 8.1 the user can resize the window to any width.

    --Rob


    Friday, October 11, 2013 3:52 PM
    Moderator
  • How can I cover this?

    Do I use viewbox control? Do you have any sample?

    thanks for your patience...

    Friday, October 11, 2013 4:07 PM
  • How best to do this will be very dependent on your app.

    See Quickstart: Designing apps for different window sizes for several different ideas to get you started.

    --Rob

    • Marked as answer by Anne Jing Friday, October 18, 2013 2:33 AM
    Friday, October 11, 2013 7:51 PM
    Moderator