locked
Problem with WPF spell checker and compound german words after updating to .Net 4.6.1 RRS feed

  • Question

  • After I updated my .Net Framework to the latest version (4.6.1), the WPF spell checker is not working correctly:

    Every time, I wrote a compound German word like "Geländewagen", the second part of the word is marked with a red line("Geländewagen"), although the compound word is a valid German word. If I used an older framework (3.5 for example), the word is not marked.

    Does anybody know a workaround, or a fix for the problem?

    For better understanding: here is the code I used to initialize my textbox:

     <TextBox Language="de" x:Name="richTextBox" Margin="10" SpellCheck.IsEnabled="True" SpellCheck.SpellingReform ="Postreform">
               Geländewagen 
            </TextBox>
    and my configuration:

    Windows 10, Visual Studio 2016, .Net 4.6.1, .Net Language Pack for 4.6.1 is installed

    Tuesday, June 14, 2016 12:40 PM

Answers

  • Hi Nekoko-chan,

    >>"So I guess it is a Windows 10 problem instead. "

    You are right. Starting .NET 4.6.1 (in Win8.1 & Win10), WPF uses ISpellChecker interface exposed by the OS to implement its SpellChecker, and the performance characteristics could be somewhat different indeed. For more information, link below is for your reference.

    Spell check textbox in Win10
    WPF in .NET 4.6.1

    Best Regards,
    Li Wang


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Proposed as answer by DotNet Wang Saturday, June 25, 2016 8:23 AM
    • Marked as answer by DotNet Wang Monday, June 27, 2016 9:52 AM
    Friday, June 17, 2016 8:03 AM

All replies

  • As a workaround, you could add any missing words to a custom dictionary. Please refer to the following links for more information about this:

    https://blogs.msdn.microsoft.com/text/2009/10/02/custom-dictionaries/
    https://wpf.2000things.com/2013/11/13/949-add-a-custom-dictionary-for-spell-checking-in-a-textbox/

    If you believe that this is a bug, you should report it at Connect: https://connect.microsoft.com/visualstudio

    Hope that helps.

    Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question. Please don't ask several questions in the same thread.

    Tuesday, June 14, 2016 5:16 PM
  • Thanks for a fast reply, but adding the words to a custom dictionary doesn't work for me, because if you add "wagen" to a custom dictionary, the single use of this word is not marked as

    invalid, although you have to use the word "Wagen" in a not compound context.

    But till yesterday, I had the chance to test it on a Windows 7 machine, which uses .Net 4.6.1 as well and there it works correctly. So I guess it is a Windows 10 problem instead.

    For that reason I will do my research on that problem first.

    Wednesday, June 15, 2016 8:05 AM
  • Hi Nekoko-chan,

    >>"So I guess it is a Windows 10 problem instead. "

    You are right. Starting .NET 4.6.1 (in Win8.1 & Win10), WPF uses ISpellChecker interface exposed by the OS to implement its SpellChecker, and the performance characteristics could be somewhat different indeed. For more information, link below is for your reference.

    Spell check textbox in Win10
    WPF in .NET 4.6.1

    Best Regards,
    Li Wang


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Proposed as answer by DotNet Wang Saturday, June 25, 2016 8:23 AM
    • Marked as answer by DotNet Wang Monday, June 27, 2016 9:52 AM
    Friday, June 17, 2016 8:03 AM