WP7 中的可滚动文本框 [英] Scrollable TextBox in WP7

查看:30
本文介绍了WP7 中的可滚动文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个文本框,用户可以在其中输入任意长的文本.我面临的问题是,如果文本大于文本框的高度,则无法滚动文本.

I have one text box in which the user can enter text as long as he wants. The problem i'm facing is that if the text is more than the height of the textbox, then i can't scroll the text.

为此,我尝试将文本框放在滚动查看器中,这解决了这个问题,但创建了一个新的,当文本超过滚动查看器的高度时,滚动查看器在键入时不会自动滚动.

For this i tried putting the textbox in scroll viewer, which solved this problem but created a new one,the scroll viewer doesn't scroll automatically while typing when the text gets more than the height of the scroll viewer.

任何想法如何做到这一点.注意:- 它的功能应该类似于 iPhone/iPad 中的 TextArea.

Any idea how to do this. Note:- It should function something like TextArea in iPhone/iPad.

谢谢

推荐答案

其实你可以滚动文本,但是有点难发现.光标必须位于实际文本的上",然后您可以向上滚动.

Actually you can scroll the text, but it is a little hard to discover. The cursor must be 'on' the actual text, and then you can scroll back up.

这篇关于WP7 中的可滚动文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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