如果用户将焦点设置在文本字段上,则显示“屏幕上"键盘.具有.Net 4客户端配置文件的WPF [英] Show up the On Screen keyboard if the user sets the focus on a textfield. WPF with .Net 4 Client profile
本文介绍了如果用户将焦点设置在文本字段上,则显示“屏幕上"键盘.具有.Net 4客户端配置文件的WPF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
对于我的全屏WPF应用程序,如果用户将焦点放在文本字段上,则需要显示Windows 7屏幕键盘.
For my full screen WPF application, I need to show up the Windows 7 onscreen keyboard, if a user sets the focus on a textfield.
该面板没有硬键盘,只有一个与之交互的鼠标设备.在这种情况下,我需要一个屏幕键盘来填充文本字段.
There's no hard keyboard for the panel, just a mouse device to interact with it. In this case I need a onscreen keyboard to fill up the textfields.
WPF应用程序是用.Net Framework 4.0客户端配置文件上的C#.Net编写的.
The WPF-application is written in C# .Net on the .Net Framework 4.0 Client profile.
感谢您的回复 安迪
推荐答案
您可以将以下代码连接到TextBox的GotKeyboardFocus或GotFocus事件
You can wire up following code to TextBox's GotKeyboardFocus or GotFocus event
Process.Start("systempath..\\osk.exe");
这篇关于如果用户将焦点设置在文本字段上,则显示“屏幕上"键盘.具有.Net 4客户端配置文件的WPF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文