Support for WPF TextBox Custom Dictionaries

Has anyone found a workaround yet to get support for custom dictionaries working for built-in spell checking in WPF / RichTextBoxes text editors? We studied the material with a reflector, hoping to find where the dictionary entries come from, but it is very similar that it will be a COM object ....

I know that it is not currently supported and that Microsoft is looking for support in a future release, but it has been quite a while and I can’t find the latest news about it.

Grasping the legs, I added the Connect clause:

https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=470233

+4
source share
4 answers

Just FYI. Custom dictionaries will be in WPF 4.0. Check out http://twitter.com/kevingj/status/2954272004 from Kevin Girstad, program manager for WPF at Microsoft.

Greetings S.

+2
source

Support for WPF 4.0 user dictionaries is still pretty weak. You can create a custom dictionary as a text file with the .lex extension and manually add words to it that the spell checker will use in addition to its own built-in dictionary. Details in this MSDN article and blog post here .

But the user cannot add an unrecognized word to the dictionary without leaving the application, opening the .lex file in Notepad and typing it. In other words, there is no “Add to Dictionary” word in the context menu of the spellchecker, even if a custom dictionary is used. Custom dictionaries are useful, I believe, for technical fields with well-defined terminology that can be pre-configured in the .lex file. But spell checking WPF is pretty weak as a general-purpose spell checker.

+2
source

Unfortunately this is not possible. http://www.dev102.com/2008/03/25/customize-spellcheck-on-wpf-text-controls/

Dictionaries are a direct copy of those used in Office 2007.

+1
source

I also looked for other spelling dictionaries.

See my question here: Does WPF TextBox support proofing dictionaries for the Netherlands?

It seems they only support 4 languages ​​.. :(

0
source

Source: https://habr.com/ru/post/1286750/


All Articles