SpellCheck .Net 类支持俄语吗?
当我在代码中使用这种结构并在文本框中输入俄语文本时,没有任何反应:
<TextBox SpellCheck.IsEnabled="True" />
当我使用这种结构时,英语文本经过拼写检查,但不是俄语文本
<TextBox xml:lang="en-US" SpellCheck.IsEnabled="True" />
我做错了什么?如何检查其他语言的拼写?或者也许有人可以建议我一个检查俄语的控件?
While I'm using such a construction in my code and typing russian text in a textbox nothing happens:
<TextBox SpellCheck.IsEnabled="True" />
While I'm using this construction english text is spell-checked but not russian
<TextBox xml:lang="en-US" SpellCheck.IsEnabled="True" />
What I'm doing wrong? How do I check spelling of other languages? Or maybe somebody can advice me a control which checks russian?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
WPF 默认情况下仅支持四种语言,而且都不是俄语。
但是,MSDN 上的此页面Social 建议通过安装 .Net 语言包来实现
WPF only supports four languages by default, and none of those are Russian.
However, this page on MSDN Social suggests it is possible by installing .Net Language Packs
我尝试进一步研究这个主题并发现以下帖子,http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/06a2cc61-f2ae-4534-b35a-6c676bc2bcb2/?prof=required 和社区 Wiki在 http://msdn.microsoft. com/en-us/library/system.windows.controls.spellcheck(v=VS.100).aspx
他们确实声明了 .NET 3.5 和 .NET 的语言包4.0 应该添加其他语言,但是我尝试将 TextBox 控件设置为 Language="ru-RU" 并使用 SpellCheck.IsEnable="True"。我在 Windows Vista 计算机上安装了 .NET 4.0 俄语语言包(英语系统安装)。拼写检查仍然不起作用。我希望微软能够更清楚地了解如何让不同的语言包与拼写检查一起使用。
I have tried researching this topic further and come across the following posts, http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/06a2cc61-f2ae-4534-b35a-6c676bc2bcb2/?prof=required and the Community Wiki at http://msdn.microsoft.com/en-us/library/system.windows.controls.spellcheck(v=VS.100).aspx
They do state that the language packs for .NET 3.5 and .NET 4.0 should add additional languages, however I have tried setting the TextBox control to Language="ru-RU" with SpellCheck.IsEnable="True". I installed the .NET 4.0 Russian language pack on my Windows Vista machine (English system install). The Spell Checking still does not work. I wish Microsoft were clearer on how to get a different language pack working with the spell checking.
en-US
指定应检查美式英语,您可能需要将其设置为ru-RU
并且需要安装相应的语言包。编辑:来自
拼写检查
类:我认为它适用于任何语言包,但我读到的来源可能是指这四种语言的语言包。
en-US
specifies that it should check American English, you probably need to set it toru-RU
and the respective language pack needs to be installed.Edit: From the
SpellCheck
class:I thought it would work for any language pack but it might be that the source where i read about that was referring to the language packs of those four languages.