Spellcheck upper case words using WPF in Windows 10

陌路散爱 提交于 2019-12-07 12:41:34

问题


I have a WPF application with some text boxes that have CharacterCasing = CharacterCasing.Upper as well as SpellCheck.IsEnabled = true.

In Windows 7 this works fine, but in Windows 10 the words in the textbox set to CharacterCasing.Upper are ignored by the spellchecker. It seems to ignore upper case words in normal text boxes as well, presumably treating them as an abbreviation.

Is there some way to make the spell checking case insensitive using the built in WPF spell checking?

EDIT:

Fast forward over a year later. Wasn't able to find a native .NET solution, but we found and ended up using Keyoti Rapidpell, a 3rd party spell checking plugin. It isn't free but it worked around the issue for us.

Just had to set the following flag:

SpellChecker.IgnoreIncorrectSentenceCapitalization = false;

Would still be nice to have a way to do it without an external library of course.

来源:https://stackoverflow.com/questions/37465106/spellcheck-upper-case-words-using-wpf-in-windows-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!