1

I created a TextBlock link this:

<TextBlock x:Name="content" TextWrapping="Wrap" Width="40"/>

String largeText = "";

content.Text=largeText;

largeText has 3000 pixels, but only 2048 are being displayed. It shows empty text after that.

How can I show largeText in TextBlock?

999999
  • 1,873
  • 3
  • 14
  • 20
Jeeva
  • 1,166
  • 4
  • 18
  • 39

2 Answers2

2

Try using this scrollabletextbox control - http://blogs.msdn.com/b/priozersk/archive/2010/09/08/creating-scrollable-textblock-for-wp7.aspx

However, its important to note that such large chunks of text are going to have serious impacts on your applications performance, and you should consider some kind of pagination for your text content, as mentioned in this question - wp7 - TextBlock with a lot of text - huge memory usage - how to avoid it?

Community
  • 1
  • 1
Henry C
  • 4,781
  • 4
  • 43
  • 83
0

The display limit for Windows Phone is 2048 pixels for the height or width of any control. You can't display larger content in a single control.

Claus Jørgensen
  • 25,882
  • 9
  • 87
  • 150