I need to enable spell checking for richtextbox and set the language to the one that the user selected from the drop-down list. For now, I'm just testing it by creating richtextbox in xaml and exposing the language to the xaml language attribute.
I read two different resources, and I said that I need to set the language attribute, and the other says that I need to set the xml: lang attribute. It doesn't seem to work. I tried setting one to "es" for Spanish, and I also tried setting both parameters to "es". I also tried French, setting them to "fr-FR", without success. The only thing that happens is that the English words are not marked, but the words of another language are marked as erroneous.
I also read that I need to change the keyboard language. This would be a problem for my application, since the language in the application must be enabled on the fly, so when the end user goes to their keyboard settings, so spell checking will be a problem. However, I changed the keyboard settings, and spell checking still does not work properly. This time, he notes nothing like spelling errors, even spelled English words with errors.
What am I missing?
Edit: some links to my links above
http://msdn.microsoft.com/en-us/library/system.windows.controls.spellcheck(v=VS.100).aspx
http://www.dev102.com/2008/03/25/customize-spellcheck-on-wpf-text-controls/
http://books.google.com/books?id=clLc5BBHqRMC&pg=PA121&lpg=PA121&dq=C%23+wpf+enable+spellcheck&source=bl&ots=_r59pZRDjP&sig=yHMBc39EHKK5gaRMzxlBaEsY890&hl=en&ei=oXnIS8zWH4G88gaq48yGBw&sa=X&oi=book_result&ct=result&resnum=6&ved=0CBMQ6AEwBQ#v=onepage&q&f=false