Possible Duplicate:
Word wrap a a string in multiple lines
I know that in XAML textwrapping may be set on objects by setting TextWrapping="Wrap"
but is there a way to do this in code behind? I am populating some listboxes and other objects with text in my code behind depending on the state of other items, but I am not able to set the textwrapping from code behind. Is this possible, and if so how could this be performed?