© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
2 replies
JJ

❔ [WPF] HighLight text problem.

thisi s my code. and 'Search_TextChanged' this method have HighLight Text algorithm especially 'makeBackGroundText' this method in 'Search_TextChanged' inner.
https://paste.mod.gg/rbplkahqernz/1 ( my code )
My problem is first picture. I wanna search 'w' but I don't understand my algorithm display each 'w' but not saved before 'w' , finally displayed final part 'w' only. I wanna display all 'w' hightLight.

My algorithm finds the English words with 'w' in order. But what I wanted is that when a new 'w' comes out, a sentence containing the previously highlighted 'w' index should be saved as the previous sentence of the new 'w'. But that's not how it's going now.
image.png
image.png
image.png
BlazeBin - rbplkahqernz
A tool for sharing your source code with the world!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ WPF Problem
C#CC# / help
3y ago
WPF TextBlock Text binding
C#CC# / help
2y ago
Wpf combobox problem
C#CC# / help
2y ago
✅ Placeholder text in WPF control
C#CC# / help
3y ago