❔ [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