How to get screen resolutions on Windows Phone devices

前端 未结 3 1631
灰色年华
灰色年华 2021-01-22 03:53

I am running into issue and would appreciate expert’s help here. I am trying to get screen resolution so that I can use appropriate layouts/images based on phone types.

3条回答
  •  自闭症患者
    2021-01-22 04:33

    You can try load App.Current.Host.Content.ScaleFactor using reflection.

    I don't have my wp8 environment now, but you can see the similar solution here. They use it to create wilde tiles on wp7.8

提交回复
热议问题