WPF 的 TextBox 是否支持荷兰的拼写检查字典? [英] Does WPF's TextBox support spell-check dictionaries for the Netherlands?

查看:27
本文介绍了WPF 的 TextBox 是否支持荷兰的拼写检查字典?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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 是否支持荷兰的拼写检查字典?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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