WPF拼写检查语言 [英] WPF spell check languages

查看:62
本文介绍了WPF拼写检查语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在小型WPF应用程序中对RichTextBox启用拼写检查.该申请的大多数文件都是丹麦文.我宁愿使用本机WPF拼写检查,例如

I'm trying to enable spell checking on a RichTextBox in a small WPF application. Most of the documents for the application are in danish. I would prefer to use natively WPF spell checking like

<RichTextBox Name="rtb" SpellCheck.IsEnabled="True" xml:lang="da"></RichTextBox>

我已经在网上搜索了大部分内容(或者看起来是这样)-我只能找到2009/2010年的旧帖子,说仅支持英语,德语,法语和西班牙语.我的想法是,现在应该支持更多的语言-但找不到任何信息.

I've googled most of the web (or so it seems) - and I can only find old posts from 2009/2010 saying only english, german, french and spanish are supported. My thought was more languages ought to be supported by now - but can find no information on this.

有人能确认仍然仅支持这四种语言吗?或者更好的是,WPF本身也支持丹麦语?

Can anyone confirm that still only those four languages are supported - or better yet tell me, that danish is also supported natively by WPF?

推荐答案

请参阅

Please see this blog post from the WPF team that elaborates a bit more.

在仅支持4种语言的配置中,您只需要正确设置xml:lang-我认为您不需要安装任何其他lang-pack.

In configurations where only 4 languages are supported, you just need to set xml:lang correctly - I don't believe that you need to installe any additional lang-packs.

在支持其他语言的平台上,操作系统需要首先启用基础平台支持.可以通过安装相应的按需功能软件包(FoD)软件包来启用此支持..

On platforms that support additional languages, the OS needs the underlying platform support to be enabled first. This support can be enabled by installing the corresponding Feature On Demand package (FoD) package.

上面链接的KB文章没有详细说明如何正确安装FoD软件包.您可以通过以下两种方式之一进行操作-

The KB article linked above doesn't elaborate on precisely how to install the right FoD package. You can do this in one of the two ways -

  • 添加相应的键盘.
    • 在Win10中,转到设置"->时间与时间";语言->地区和语言->添加语言.默认情况下,这将添加对所讨论语言的键盘支持(默认情况下,这不会添加语言包).操作系统将通知Windows Update自动下载并安装相应的FoD软件包(您将看到一条通知,指示正在安装新功能).完成此操作后,WPF将开始支持对您刚刚启用的语言的拼写检查.

    这篇关于WPF拼写检查语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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