gpt4 book ai didi

.net - 有没有办法确定当前屏幕是否支持触摸?

转载 作者:行者123 更新时间:2023-12-03 17:54:30 25 4
gpt4 key购买 nike

这个问题在这里已经有了答案:




8年前关闭。




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



如何判断我正在使用的设备是否有触摸屏?我在想这样的事情:
SystemParameters.IsPenWindows

最佳答案

foreach (TabletDevice tabletDevice in Tablet.TabletDevices)
{

if(tabletDevice.Type == TabletDeviceType.Touch)
return true;
}

你也可以引用这个:
Is it possible to let my c# wpf program know if the user has a touchscreen or not?

关于.net - 有没有办法确定当前屏幕是否支持触摸?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13419043/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com