How to show string inside string in different color?
        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
            5:31 UTC
        
        
        Read the original article
        Hit count: 270
        
wpf
I have one TextBox and One listbox for searching a collection of data. While searching a text inside a Listbox if that matching string found in 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