Windows 7 Tablet Button Double-Tap

落花浮王杯 提交于 2019-12-12 16:39:49

问题


I have developed an application to run on a Samsung Series 7 tablet. This application was developed using WPF, .NET 4.5, and C#.

My problem is that sometimes a button does not receive input the first time it is tapped. For example, Window1 has a OpenWindow2Button on it that opens Window2. Close Window2 and then try to push DoSomethingElseButton. The first time I tap the button, nothing happens. The second time the button works like expected. The same problem also occurs when I tap a DisplayMediaElement that is on Window1.

An interesting fact is that if I use a stylus or mouse, the problem is non-existent.

My guess is that the Window or DisplayMediaElement does not have focus to receive a tap input. (But then why does it have focus to receive a stylus or mouse input?) Is this a feature or a bug? Is it possible to receive touch input the first time a button is tapped?


回答1:


Maybe sometimes it does not recognize gesture as 'tap' but as 'drag' (or any other gesture type)? I think i had a problem with it some time ago.



来源:https://stackoverflow.com/questions/16413882/windows-7-tablet-button-double-tap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!