How to draw border around a word in RichTextBox?
问题 Let's say I have 2 TextPointers. One pointing at the beginning of a word and the other at the end of the word. I would like to draw single pixel border around the word. How would I go about this? The border should be tied to the word and move with it when user types or scrolls.. I already tried TextDecorations with DrawingBrush but couldn't come up with anything usable. 回答1: I have done something similar, only underlining text in a TextBox. The principal seems to be mostly the same. Add an