How to change the color of text in a textbox - Silverlight 3?

I have a regular TextBox. I know to change the color of the text I can use the Run tag. But when I try to use this imperatively instead of declaratively (because I need to do it dynamically) I have some text in the TextBox like

AAA<Run...>Text to be changed in color</Run>

      

and nothing will change in color. How can I change the color of some text in some program mode? Thanks to

+2


source to share


1 answer


I'm sure you need to use RichTextBox for this, TextBox only works with plain text.



+1


source







All Articles