有没有一种方法来确定当前的屏幕支持触控?

编程入门 行业动态 更新时间:2024-10-26 23:37:48
本文介绍了有没有一种方法来确定当前的屏幕支持触控?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述   

可能重复:   Is它可以让我的C#WPF程序知道用户是否有触摸屏或不?

我怎样才能知道我工作的设备具有触摸屏?我想是这样的:

SystemParameters.IsPenWindows

解决方案

的foreach(TabletDevice tabletDevice在Tablet.TabletDevices)         {             如果(tabletDevice.Type == TabletDeviceType.Touch)                 返回true;         }

您也可以参考这个: Is它可以让我的C#WPF程序知道用户是否有触摸屏或不?

Possible Duplicate: Is it possible to let my c# wpf program know if the user has a touchscreen or not?

How can I tell if the device I'm working on has a touch screen? I'm thinking something like:

SystemParameters.IsPenWindows

解决方案

foreach (TabletDevice tabletDevice in Tablet.TabletDevices) { if(tabletDevice.Type == TabletDeviceType.Touch) return true; }

you can also refer this one: Is it possible to let my c# wpf program know if the user has a touchscreen or not?

更多推荐

有没有一种方法来确定当前的屏幕支持触控?

本文发布于:2023-08-07 19:51:51,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1321428.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:方法来   屏幕   触控

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!