How to get the resolution of screen? For a WinRT app?

前端 未结 5 1416
南笙
南笙 2020-12-08 02:47

I want to know the screen resolution so that I can set the height of an element according to the resolution in a Windows 8 app.

5条回答
  •  遥遥无期
    2020-12-08 02:50

    Are you using XAML? If so it does not matter. Use the Grid control. It will fill up all available space. Read Jerry's blog as to why you might want to use xaml for WinRT development.

提交回复
热议问题