2012-11-16 32 views

cevap

0
foreach (TabletDevice tabletDevice in Tablet.TabletDevices) 
     { 

      if(tabletDevice.Type == TabletDeviceType.Touch) 
       return true; 
     } 
da başvurabilir

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

+1

Bu en iyi kopyalama yapıştırma sadece daha az kapsamda, iki kopya halinde cevap olarak ve yorumsuz. –

+0

@ FrédéricHamidi: dürüstçe, ben referans verdiler –

+1

Bir bağlantı (ve cevabını değil, sorunun cevabını gösterir) bir bağlantı sağlasanız bile, yinelenen bir sorudan bir yanıtı gasp etmek yine de kaşlarını çattı. –

İlgili konular