My question is related to: Change color and font for some part of text in WPF C#
There is an answer that states you can change the text foreground color with this statement:
rangeOfText1.ApplyPropertyValue(TextElement.ForegroundProperty, Brushes.Blue);
However, this doesn't work for me: I get a runtime error indicating that the parameter type SolidBrush cannot be used for ForegroundProperty. What's wrong?