WP7 的 TextBox 限制在文本中?漏洞?

编程入门 行业动态 更新时间:2024-10-28 09:22:54
本文介绍了WP7 的 TextBox 限制在文本中?漏洞?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送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:关键词]

本文发布于:2023-04-25 15:25:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1119406.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:漏洞   TextBox   文本中

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!