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 中的语言属性
- 使用 XmlLanguage.GetLanguage("nl-NL"); 更改代码中的 Language 属性;
以下行不应出现任何拼写错误:
You should not get any spelling errors with the following line:
Dit is 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 是否支持荷兰的拼写检查字典?
发布评论