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

时间:2012-11-16 14:56:30

标签: .net wpf c#-4.0 touchscreen

  

可能重复:
  Is it possible to let my c# wpf program know if the user has a touchscreen or not?

如何辨别我正在使用的设备是否有触摸屏?我想的是:

SystemParameters.IsPenWindows

1 个答案:

答案 0 :(得分: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?