I have a text block inside a scroll viewer. I am reading a text file into a string and assigning it to the text block. When I step through the code the complete text document has been properly assigned to the string and the text block displays the 1st "x" characters as it should. The remaining text isn't visible but you can still scroll the empty text down (as if it was there) until you hit the bottom. It's like the text block knows the character count but just isn't displaying it all... though it appears to be "using" the appropriate space it would take to display it... seems to be a weird quirk that I'm hoping will be logical to someone :)
To create the string I am doing the following...
var resource = Application.GetResourceStr
StreamReader streamReader = new StreamReader(resource.Stre
StringBuilder sb2 = new StringBuilder();
txblTest.Text = sb2.ToString();
The xaml is very basic... inside te content panel I have a scroll viewer and the text block is inside that. Scroll view's height is 440 x 591 and the text blocks is Auto(0) for both.
It appears to be displaying about 40% of the text in the document before it "goes black"... is there possibly some restriction to character length max in a textblock? One thing you can't see on the screen shot is that the vertical "scroll bar indicator" is about 1/2 the way down the screen... you can continue to scroll down through the blank area until you hit the bottom.