How to highlight matching sub-strings inside a ListBox?
Posted
by Kishore Kumar
on Stack Overflow
See other posts from Stack Overflow
or by Kishore Kumar
Published on 2010-05-24T05:25:56Z
Indexed on
2010/05/24
10:01 UTC
Read the original article
Hit count: 285
I have one TextBox and one listbox for searching a collection of data. While searching a text inside a Listbox if that matching string is found anywhere in the list it should show in Green color with Bold.
eg. I have string collection like "Dependency Property, Custom Property, Normal Property". If I type in the Search Text box "prop" all the Three with "prop" (only the word Prop) should be in Bold and its color should be in green. Any idea how it can be done?.
Data inside listbox is represented using DataTemplate.
© Stack Overflow or respective owner