TextBlock does not display all Text (Windows Phone 8)
-
Dear All, I have below code (Just for text purpose)
<ScrollViewer VerticalScrollBarVisibility="Visible">
<TextBlock x:Name="txt" Foreground="White" FontSize="40"/>
</ScrollViewer>and c#
for (var i = 0; i < 50; i++)
txt.Text += counter++ + Environment.NewLine;It prints upto 43 lines (counter), However there is a scroll, but i cannot see the remaining text. I dont know what is the issue with textblock (does it accept only 43 lines or more?)
Abdul Rahaman Hamidy Database Developer Kabul, Afghanistan
-
Dear All, I have below code (Just for text purpose)
<ScrollViewer VerticalScrollBarVisibility="Visible">
<TextBlock x:Name="txt" Foreground="White" FontSize="40"/>
</ScrollViewer>and c#
for (var i = 0; i < 50; i++)
txt.Text += counter++ + Environment.NewLine;It prints upto 43 lines (counter), However there is a scroll, but i cannot see the remaining text. I dont know what is the issue with textblock (does it accept only 43 lines or more?)
Abdul Rahaman Hamidy Database Developer Kabul, Afghanistan
Hello Abdul, you can refer my resent blog post for the same solution. How to make TextBox Scrollable and Navigate to end of TextBox scrolling in Windows Phone[^] Hope it helps:java:
Pavan Pareta