0

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?

Community
  • 1
  • 1
Matthew
  • 3,976
  • 15
  • 66
  • 130

1 Answers1

1

Is this what you are looking for?

yourTextBox.TextWrapping = TextWrapping.Wrap;
nkchandra
  • 5,585
  • 2
  • 30
  • 45