将大文本放入 Texblock 和 ScrollViewer 中
我有这个 PivotItem:
<controls:PivotItem Header="Biografie">
<StackPanel>
<ScrollViewer x:Name="textScroller" Margin="10,0,10,0">
<TextBlock Text="{Binding Biography}"
TextWrapping="Wrap"/>
</ScrollViewer>
</StackPanel>
</controls:PivotItem>
在传记中我有大文本(大约 1575 个字符)。我可以使用滚动查看器滚动,但我没有看到所有文本。它只是在结束前停了几句话。我发现文本块不会显示超过 5000 个字符或类似的内容,但我的字符要少得多。有人知道我哪里有问题吗?谢谢
I have this PivotItem:
<controls:PivotItem Header="Biografie">
<StackPanel>
<ScrollViewer x:Name="textScroller" Margin="10,0,10,0">
<TextBlock Text="{Binding Biography}"
TextWrapping="Wrap"/>
</ScrollViewer>
</StackPanel>
</controls:PivotItem>
and in Biography I have large text (about 1575 chars). I can scroll with scrollviewer but I didn´t see all text. It just stop few sentences before end. I found that textblock don´t display more then 5000 chars or something like that but I have much less. Anyone know where can I have problem? Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
高度限制为 2048 像素。查看此解决方法: 为 WP7 创建可滚动 TextBlock
There is a limit to 2048 px height. Look at this to workaround: Creating Scrollable TextBlock for WP7