Answered by:
Wrapping text to content

Question
-
Dear all,
I have trouble to Wrap big text content and I do not know which control is better for that.
For exemple what I need to do is display big text in a grid.Then if the grid column is too small for the text to be read then it will be wrapped to next line.
How can I do this ?
Thnaks
Serge
Your knowledge is enhanced by that of others.Sunday, May 16, 2010 2:24 PM
Answers
-
Hi Serge,
Could you try TextBlock with TextWrapping set to WrapWithOverflow or Wrap?
http://msdn.microsoft.com/en-us/library/system.windows.controls.textblock.textwrapping.aspx
Regards,
Jie
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg@microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback, please tell us.
The All-In-One Code Framework Project
My Blog (in Simplified Chinese)- Marked as answer by Jay_WangMicrosoft employee Tuesday, May 25, 2010 1:33 AM
Monday, May 17, 2010 9:58 AM -
you could use textbox with textwrapping if you need an editable grid
- Marked as answer by Jay_WangMicrosoft employee Tuesday, May 25, 2010 1:33 AM
Monday, May 17, 2010 2:33 PM
All replies
-
Hi Serge,
Could you try TextBlock with TextWrapping set to WrapWithOverflow or Wrap?
http://msdn.microsoft.com/en-us/library/system.windows.controls.textblock.textwrapping.aspx
Regards,
Jie
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg@microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback, please tell us.
The All-In-One Code Framework Project
My Blog (in Simplified Chinese)- Marked as answer by Jay_WangMicrosoft employee Tuesday, May 25, 2010 1:33 AM
Monday, May 17, 2010 9:58 AM -
you could use textbox with textwrapping if you need an editable grid
- Marked as answer by Jay_WangMicrosoft employee Tuesday, May 25, 2010 1:33 AM
Monday, May 17, 2010 2:33 PM