TextBlock wrapping of text in Silverlight XAML file.

Sep 12, 2011 at 5:05 AM

TextBlock wrapping of text in Silverlight XAML file.

I have a wierd and annoying problem.  I have a textblock that is inside a stackpanel that is Oriented horizontal.  It would be nice if I could have the textblock appear in multiple lines nicely wrapped.  How could I do that?

 

Sep 12, 2011 at 12:04 PM

You probably have to give the TextBlock a fixed width and set the TextWrapping property.