Multilingual spell checker in WPF richtextbox

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

+5
2

MSDN:

"-, , WPF, /// ?

NetFx 3.5 SP1

Windows XP ( ); Windows Vista ( ); Windows 7 ( )

NetFx 4 Windows XP ( ); Windows Vista ( ); Windows 7 ( )

" " , .NET Framework. , Windows XP .NET Framework 3.5 1 (SP1), .NET Framework 3.5 1 (SP1). .NET Framework 4.0, .NET Framework 4.0.

.NET Framework 4.0.

, , .

ClickOnce, . ClickOnce ClickOnce Setup and Deployment Projects Forum.

-, RichTextBox ?

Run , :

   uno dos tres cuatrro      

, , .

http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/06a2cc61-f2ae-4534-b35a-6c676bc2bcb2/?prof=required

+1

, , :

    <StackPanel>
        <TextBox SpellCheck.IsEnabled="True"
            Language="{Binding SelectedItem.Content, ElementName=lg, ConverterCulture=en-us}">

            Turtle tortue tortuga Schildkröte 

        </TextBox>
        <ComboBox Name="lg">
            <ComboBoxItem Selector.IsSelected="True">en-US</ComboBoxItem>
            <ComboBoxItem>fr-FR</ComboBoxItem>
            <ComboBoxItem>es-ES</ComboBoxItem>
            <ComboBoxItem>de-DE</ComboBoxItem>
        </ComboBox>
    </StackPanel>

3.5, 4.0. .

3.5 . 4.0 WPF .

2

, 3.5, Windows 7, .

, , . , , .

, , , .

+2

All Articles