双击Windows 7平板电脑按钮 [英] Windows 7 Tablet Button Double-Tap

查看:119
本文介绍了双击Windows 7平板电脑按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个可在Samsung Series 7平板电脑上运行的应用程序。此应用程序是使用WPF,.NET 4.5和C#开发的。

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

我的问题是,有时某个按钮在第一次被点击时没有收到输入。例如,Window1上有一个OpenWindow2Button,可以打开Window2。关闭Window2,然后尝试按DoSomethingElseButton。第一次点击按钮时,什么也没有发生。第二次按钮按预期工作。当我点击Window1上的DisplayMediaElement时,也会发生相同的问题。

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.

我的猜测是Window或DisplayMediaElement没有焦点来接收点击输入。 (但是,为什么它有焦点来接收手写笔或鼠标输入?)这是功能还是错误?

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?

推荐答案

也许有时不能将手势识别为点击吗? ,而是拖动(或其他任何手势类型)?我想我前段时间有问题。

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.

这篇关于双击Windows 7平板电脑按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆