5

可能重复:
是否可以让我的 c# wpf 程序知道用户是否有触摸屏?

如何判断我正在使用的设备是否有触摸屏?我在想类似的事情:

SystemParameters.IsPenWindows
4

1 回答 1

0
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?

于 2012-11-16T18:51:04.680 回答