热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

触摸键盘什么时候弹出?-Whendoesthetouchkeyboardpopup?

Imworkingonanon-touchdevice(regularPC)withakeyboard.IvewrittenaWindows8App,whi

I'm working on a non-touch device (regular PC...) with a keyboard. I've written a Windows 8 App, which includes TextBox.

我正在使用带键盘的非触摸设备(常规PC ......)。我写了一个Windows 8应用程序,其中包括TextBox。

I want to launch the Touch Keyboard, when the user uses a device without a keyboard (=Tablet/Phone). How can I test it?

当用户使用没有键盘的设备(=平板电脑/手机)时,我想启动触摸键盘。我该怎么测试呢?

I.e. when I use the Visual Studio simulator for Windows 8 and choose "taps" as the gesture, the virtual touch keyboard still won't popup. Is there any specific moment where Windows is using the keyboard automatically? I'd actually like to test the Touch Keyboard to check the InputScope (i.e. InputScope="Number") and the 'look of the app', when the keyboard pops up.

即当我使用Windows 8的Visual Studio模拟器并选择“点击”作为手势时,虚拟触摸键盘仍然不会弹出。 Windows是否有自动使用键盘的具体时刻?我实际上想要在键盘弹出时测试触摸键盘以检查InputScope(即InputScope =“数字”)和“应用程序的外观”。

If needed, my TextBox looks like this:

如果需要,我的TextBox看起来像这样:


Edit: The keyboard pops up now (I don't know why...). I've started the simulator and used "taps" as gesture and the keyboard didn't pop up. After restarting the simulator ~5 times, it pops up now, but the InputScope is not Number...

编辑:键盘现在弹出(我不知道为什么......)。我已经启动了模拟器,并使用“水龙头”作为手势,键盘没有弹出。重新启动模拟器~5次后,它会立即弹出,但InputScope不是数字...

1 个解决方案

#1


0  

Visual Studio 2012 comes with a Simulator that you can run your Windows 8 app in. On the right of that, you may notice buttons near the top, one that's a pointer and another that's a finger. If you use the finger, then all input will be touch input, as if there were no keyboard.

Visual Studio 2012附带了一个模拟器,您可以在其中运行Windows 8应用程序。在右侧,您可能会注意到顶部附近的按钮,一个是指针,另一个是手指。如果您使用手指,则所有输入都将是触摸输入,就像没有键盘一样。


推荐阅读
author-avatar
x将臣x
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有