[英]Windows 7 Tablet Button Double-Tap
I have developed an application to run on a Samsung Series 7 tablet. 我已经开发了一个可以在Samsung Series 7平板电脑上运行的应用程序。 This application was developed using WPF, .NET 4.5, and C#.
此应用程序是使用WPF,.NET 4.5和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.
例如,Window1上有一个OpenWindow2Button,可以打开Window2。 Close Window2 and then try to push DoSomethingElseButton.
关闭Window2,然后尝试按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.
当我点击Window1上的DisplayMediaElement时,也会发生相同的问题。
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. 我的猜测是Window或DisplayMediaElement没有焦点来接收点击输入。 (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?
第一次点击按钮是否可以接收触摸输入?
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.
我想我前段时间有问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.