简体   繁体   English

禁用WindowsIoT屏幕键盘TextBox自动更正

[英]Disable WindowsIoT On-screen keyboard TextBox Auto-correct

This is for a UWP app deployed to a Raspberry Pi 3 with a touch screen. 这适用于部署到带触摸屏的Raspberry Pi 3的UWP应用程序。 On-screen keyboard enabled. 启用屏幕键盘。

I have a TextBox control for ASCII commands to be sent to a device. 我有一个TextBox控件用于将ASCII命令发送到设备。 Is there a way to disable or prevent auto correction on a textbox control when using the on-screen touch keyboard? 有没有办法在使用屏幕触摸键盘时禁用或阻止文本框控件上的自动更正? Is there a way to do that in XAML? 有没有办法在XAML中做到这一点?

It is nice to have auto-correction available. 很高兴有自动校正功能。 I'd hate to disable it completely, but I suppose that's also an option. 我不想完全禁用它,但我想这也是一个选择。

You can disable autocomplete and text prediciton with TextBox properties: IsSpellCheckEnabled , IsTextPredictionEnabled . 您可以使用TextBox属性禁用自动完成和文本谓词IsSpellCheckEnabledIsTextPredictionEnabled

Setting <TextBox IsTextPredictionEnabled="False" IsSpellCheckEnabled="False"/> should do the job. 设置<TextBox IsTextPredictionEnabled="False" IsSpellCheckEnabled="False"/>应该完成这项工作。

Howeer if you need more sophisticated solution with some modifications when on-screen keyboard is showing, then you can probably use InputPane class for this. 但是,如果您在屏幕键盘显示时需要更复杂的解决方案并进行一些修改,那么您可以使用InputPane类。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM