views:

509

answers:

1

Hello, 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

+1  A: 

I'm fairly sure you have to use a RichTextBox for that, TextBox only works with plaintext.

Eric
Yes, maybe but Silverlight itself doesn't contain such control.
Seacat
The documentation on RichTextBox for use in Silverlight can be found at http://msdn.microsoft.com/en-us/library/system.windows.controls.richtextbox.aspx
Jeremy Seghi