在Windows 7 WPF Touch应用程序中显示数字键盘 [英] Show Numeric keypad in Windows 7 WPF Touch application

查看:316
本文介绍了在Windows 7 WPF Touch应用程序中显示数字键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I am developing a WPF touch application. In which I have a textbox, which allows only numbers. In that case I need only numeric virtual keypad to be shown on focus. Is there a way to do that?

谢谢,

Jawahar

推荐答案

我想您正在Windows 7上执行此操作?

I'm guessing you are doing this for Windows 7?

在这种情况下,我强烈建议添加 Surface API 到您的项目.

In which case I STRONGLY recommend adding the Surface API to your project.

http://msdn.microsoft.com /en-us/library/ee804845(v=surface.10).aspx

他们最近发布了一个更新,意味着您可以在Windows 7以及MS Surface上使用它.

They recently released an update that means you can use it on Windows 7, as well as MS Surface.

 

所有控件都是超级性感的iPad风格,并且易于使用(SurfaceScrollViewer而不是ScrollViewer)

All the controls are super sexy iPad style, and easy to use (SurfaceScrollViewer instead of a ScrollViewer)

Surface API还带有输入模拟器,因此您可以在开发台式机上测试启用触摸的应用程序.

The Surface API also comes with an input simulator, so you can test touch enabled applications on your development desktop PC.

 

在您的情况下,Surface带有明显的名称"SurfaceKeyboard",可以通过其布局"属性将其设置为仅数字.

In your case, Surface comes with the obviously named "SurfaceKeyboard", which can be set to just numeric through its Layout property.

http ://msdn.microsoft.com/zh-CN/library/microsoft.surface.core.surfacekeyboard.layout(v = surface.10).aspx

 

 

否则,如果您真的想使用旧的虚拟键盘很痛苦,我认为这与 InputScope

Otherwise, if you really want the pain of working with the old virtual keyboards, I think it was something to do with InputScope

 

有帮助吗?

 

此致,
佩德罗(Pedro)

Regards,
Pedro


这篇关于在Windows 7 WPF Touch应用程序中显示数字键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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