I am redoing my Windows Forms app in WPF and I am having some trouble with the Selections of Windows Forms and the TextRange of WPF. In Windows Forms, I used to do a Selection of Length 0 on a RichTextBox to change the color of a specific position so that when someone writes starting there it has a different color, withuot changing the color of any text. Something like this:
richTextBox.Select(position, 0);
richTextBox.SelectionColor = Color.Blue;
The problem is that in WPF I can't find any equivalent. If I use a TextRange of Length 0, it does nothing. Do you know what can I do? Thank you!