C
C#2y ago
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.
BlazeBin - rbplkahqernz
A tool for sharing your source code with the world!
2 Replies
JJ
JJOP2y ago
what i want like this picture. it is display all 's' that I search. but my code is not.
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server