Reputation: 5224
I have a usual TextBox. I know in order to change the color of some text I can use Run tag. But when I try to use it imperatively instead declaratively (because I need to do that dynamically) I have the text in TextBox like
AAA<Run...>Text to be changed in color</Run>
and sure nothing in color changes. How can I change the color of some text in some program way? Thanks
Upvotes: 2
Views: 1649
Reputation: 851
I'm fairly sure you have to use a RichTextBox for that, TextBox only works with plaintext.
Upvotes: 1