我想知道屏幕分辨率,以便我可以根据 Windows 8 应用程序中的分辨率设置元素的高度。
最佳答案
这个怎么样?
var bounds = Window.Current.Bounds;
double height = bounds.Height;
double width = bounds.Width;
关于c# - 如何获得屏幕的分辨率?对于 WinRT 应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10828179/