[英]Screen Resolution ( C# Win 8.1 app)
我正在为Windows 8.1开发一个应用程序,我需要获取设备屏幕的分辨率。
我在论坛上搜索并发现:
Window.Current.Bounds.Width
Window.Current.Bounds.Height
但这仅返回应用程序窗口的分辨率。
我猜你应该使用屏幕课程
> Screen screen = Screen.PrimaryScreen;
>
> int S_width=screen.Bounds.Width;
>
> int S_height=screen.Bounds.Height;
如上所示在stackoverflow上的几个地方
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.