RichTextBox支持非常好的拼写检查选项. (SpellCheck.IsEnabled = true)
The RichTextBox supports a spellcheck option which is very nice. (SpellCheck.IsEnabled = true)
但是我似乎无法用另一种语言来表达. (我住在荷兰.;))
But I cannot seem to get it to another language. (I live in the Netherlands.. ;))
您有没有使用TextBox的SpellCheck选项的经验?
Does any of you have an experience with the SpellCheck option of TextBox?
我知道可以通过更改键盘设置来更改它,但是我想在应用程序中更改它.
I know it can be change by changing the keyboard settings, but I want to change it in the application.
到目前为止,我已经尝试过(但没有成功):
What I have tried so far (and did not work):
- 在当前线程上更改CurrentCulture.
- 在"nl-NL"中的xaml中更改Language属性
- 使用XmlLanguage.GetLanguage("nl-NL"); 更改代码中的Language属性
- Changing the CurrentCulture on the current Thread.
- Changing the Language property in xaml in "nl-NL"
- Changing the Language property in code with the XmlLanguage.GetLanguage("nl-NL");
在下面的行中,您不会出现任何拼写错误:
You should not get any spelling errors with the following line:
"Dit是een Nederlandse tekst."
"Dit is een Nederlandse tekst."
我的语言的RFC 3066语言密钥是"nl-NL"
The RFC 3066 language key of my language is "nl-NL"
非常感谢, 里克
推荐答案对WPF的拼写支持仅限于4种语言.英文,西班牙文,法文和德文.
Spelling support for WPF is limited to just 4 languages; English, Spanish, French, and German.
使用自定义词典只会在当前词典中添加特殊词".它将不允许使用新的语言词典.
Using a custom dictionary will only add "special words" to the current dictionary. It will not allow a new language dictionary.
更多推荐
WPF的TextBox是否支持荷兰的拼写检查字典?
发布评论