tags:

views:

349

answers:

0

I have a string for a WPF Paragraph that I would like to replace certain words with InlineUIContainers. Would would be the best method to do this?

As I am comparing words, would it be best to split the string of the Paragraph text into and ArrayList of words and then compare each word and replace the ArrayList object with the InlineUIContainer when a word match is found? I could then regenerate the Paragraph using a Span element the contains all the ArrayList objects. Would this be the best performance?