WP7 的 TextBox 限制在文本中?漏洞? [英] TextBox for WP7 limit in text ? bug?

查看:28
本文介绍了WP7 的 TextBox 限制在文本中?漏洞?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个文本框,我在其中以编程方式设置了内容:

I have a TextBox, in which I set the content programmatically :

LegalTextBlock.Text = "有些较长的合法内容";

LegalTextBlock.Text = "Some awfully long legal content";

(请参阅此处了解说明我的问题的 Lorem Ipsum 示例:http://pastebin.com/jWLrwcGe)

(see here for a Lorem Ipsum sample that illustrate my problem : http://pastebin.com/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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆