I’m reading JSON from a WebService and put my data in a list of textblocks (wrapped in grids).
Sometimes the text is long and I would like that the textblock would add automatically a new line if needed (instead going to the right endlessly).
I’ve read somewhere that I should wrap the textblock in a Label (not recognized by VS2010?)..
I cannot put <\newline> or \n or anything because I don’t know where or when.
Thanks.
You could set the TextWrapping property to Wrap:-
http://msdn.microsoft.com/en-us/library/system.windows.controls.textblock.textwrapping.aspx