Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Dictionary Not Being Applied Correctly in WPF TextBox - Red Underline Persisting on Dictionary Words #9808

Closed
Sekar47 opened this issue Sep 18, 2024 · 3 comments

Comments

@Sekar47
Copy link

Sekar47 commented Sep 18, 2024

Description

I am experiencing a problem with applying a custom dictionary to a TextBox in a WPF application. Despite correctly setting the SpellCheck.CustomDictionaries property to include my .lex file, the TextBox continues to underline words from the custom dictionary with red squiggly lines, indicating them as errors.

Reproduction Steps

CustomDict.zip

  1. In the attached sample, note that in a MainWindow.xaml , we've added a text in textbox which is already present in the custDictionary.
  2. Run the sample and note that the word is still underlined by the red squiggly line.

[Note] : Ensure the _uri of the custDictionary.

Expected behavior

Words present in the custom dictionary should not be underlined with red squiggly lines in the TextBox.

Actual behavior

Words in the custom dictionary are still highlighted as errors.

Any insights or suggestions to resolve this issue would be greatly appreciated.

Regression?

No response

Known Workarounds

No response

Impact

No response

Configuration

OS: Windows 11
.NET Framework version: .NET Framework 4.8
Visual Studio: VS2022

Other information

No response

@miloush
Copy link
Contributor

miloush commented Sep 18, 2024

A duplicate of #9760?

@Sekar47
Copy link
Author

Sekar47 commented Sep 19, 2024

Hi @miloush ,

Thank you for pointing out the connection to issue #9760 ? It seems like both myself and other users are encountering the same problem with no solution or workaround available yet.

@harshit7962
Copy link
Member

Closing this ticket as it is a duplicate of #9760. Will keep things updated there.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants