font size scaling in Windows Store Universal App (W8.1 + WP8.1)

前端 未结 5 1661
深忆病人
深忆病人 2020-12-24 03:03

How do i scale text in Windows Store Universal App (W8.1 + WP8.1)? Basically, the app should look the same regardless which device/resolution is used. The current situation

5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-24 03:23

    Your sample images are misleading because the actual size of the devices would be different as well. This blog post tells you how to setup emulators for a more accurate representation.

    If you want the exact same content on every screen (ie, a 6" phone just shows a blown-up version of a 4" phone, rather than showing 50% more content) then use a ViewBox to scale your app. This is not a particularly good user experience though.

提交回复
热议问题