WPF Windows 10-键盘问题 [英] WPF Windows 10 - Keyboard Issues

查看:84
本文介绍了WPF Windows 10-键盘问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Guys,

我需要为我所困扰的问题提供建议/帮助/指导,这是针对Windows 10开发WPF应用时的默认键盘.

I need advise/assistance/direction with an issue i'm struggling with, this is in regards to the default keyboard when developing WPF apps for windows 10.

我们的问题是:

1.单击文本框字段不会自动弹出键盘,我们必须通过启动键盘过程来手动弹出键盘,这是正确的吗?必须有更好的解决方案吗?

1. Clicking on a textbox field does not automatically pop the keyboard, we have to manually pop the keyboard by starting the keyboard process, Is this correct? There must be a better solution?

2.我们正在编写一个应用程序,该应用程序将在服务中心中用于为客户提供服务,Windows PC将被锁定,并且出于安全目的,我们的应用程序将是唯一允许在设备上运行的应用程序.

2. We are writing an application that will be used in service centers to service clients, the windows PC will be locked down and our app will be the only allowed application to run on the device for security purposes. 

问题是

a.键盘一旦打开,由于键盘上有可用的设置按钮,因此允许用户访问PC设置;如果显示了键盘,仍然可以从键盘上删除设置按钮吗?

a. The keyboard once open allows the user to access PC settings because of the settings button available on the keyboard, is there anyway to remove the settings button from the keyboard when shown?

b.也许有GPO可以禁用该按钮或阻止PC设置屏幕打开?

b. Is there perhaps a GPO to disable the button or prevent the PC settings screen from opening?

c.反正可以禁用键盘上的表情符号按钮吗?

c. Is there anyway to disable the emoji button on the keyboard?

对此的任何帮助将不胜感激,因为这会引起企业的主要担忧

Any help in regards to this will be greatly appreciated as this is causing major concerns for the business

推荐答案

你好雷纳多布,

Hi Renaldob,

>>>>",我们必须通过启动键盘过程来手动弹出键盘,这是正确的吗?

>>"we have to manually pop the keyboard by starting the keyboard process, Is this correct? "

那是现在唯一的方法.

That is only way to do it now.

private void TouchEnabledTextBox_GotTouchCapture(object sender, System.Windows.Input.TouchEventArgs e)
{
    string touchKeyboardPath = @"C:\Program Files\Common Files\Microsoft Shared\Ink\TabTip.exe";        
    Process.Start( touchKeyboardPath );
}

>>>>总有没有禁用键盘上的表情符号按钮的内容?"

>>"Is there anyway to disable the emoji button on the keyboard?"

我还没有找到任何方法.相反,建议您在WPF应用程序中防止这些字符.您可以将文本框设置为仅接受一种格式的字符.

I haven't found any way to do it. Instead, I suggest you prevent these characters in your WPF application. You could set your textbox only accept one format of characters.

我如何得到一个TextBox只接受WPF中的数字输入?

最好的问候,
王丽

Best Regards,
Li Wang


这篇关于WPF Windows 10-键盘问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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