文本框的滚动设计 [英] Scroll design for textboxes

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

问题描述

在很多场景中我都有一个文本框,我希望能够滚动它以查看/编辑文本框中的所有文本。我曾经认为这只是通过在文本框中向上或向下滑动手指来完成的,但显然这不是
。我发现或我能找到的唯一想法是将文本框放在ScrollView中,但是,这并不真正滚动文本,它只是移动文本框。我知道我不是第一个编写具有文本框$​​ b $ b的应用程序的人,这些文本框不足以显示将要输入的所有文本,所以任何人都可以告诉我最好的,推荐的或最有效的使文本框可滚动的方法?谢谢。

There are many scenarios in which I have a textbox in which I want to be able to scroll in order to see/edit all the text in the textbox. I used to think that this was done by simply sliding your finger up or down in the textbox, but apparently that is not the case. The only idea that has occurred to me or that I could find is to place the textbox inside a ScrollView, however, this does not really scroll the text, it just moves the textbox. I know that I am not the first person to write an app that has textboxes that are not big enough to display all the text that will be entered into them, so can anybody tell me the best, recommended, or most efficient way to make a textbox scrollable? Thanks.

推荐答案

如果正确设置了大小调整,ScrollViewer中的TextBox可以正常工作。这是一个例子:
TextBox in a ScrollViewer works if you set up the sizing properly. Here's an example:


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

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