问题描述
限时送ChatGPT账号..我有一个文本框,我在其中以编程方式设置了内容:
I have a TextBox, in which I set the content programmatically :
LegalTextBlock.Text = "有些较长的合法内容";
LegalTextBlock.Text = "Some awfully long legal content";
(请参阅此处了解说明我的问题的 Lorem Ipsum 示例:http://pastebin/jWLrwcGe)
(see here for a Lorem Ipsum sample that illustrate my problem : http://pastebin/jWLrwcGe)
测试大约有4k个字符,显示不全.这正常吗?我怎样才能继续显示长静态文本?
The test is about 4k characteres long, and is not displayed completely. Is this normal ? How could I proceed to display long static text ?
这是我的 xaml :
Here is my xaml :
<ScrollViewer Margin="8">
<TextBlock x:Name="LegalTextBlock" TextWrapping="Wrap" Foreground="Black" />
</ScrollViewer>
推荐答案
任何必须显示的元素超出面积大于2048x2048 像素将被裁剪平台
Any element that must be displayed beyond the area which is larger than 2048x2048 pixels would be clipped by the platform
检查这个 出来,已经创建了一个自定义控件来处理您遇到的问题.
Check this out, a custom control has been created to deal with the issue you are experiencing.
这篇关于WP7 的 TextBox 限制在文本中?漏洞?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
更多推荐
[db:关键词]
发布评论