WPF 创建多行TextBox
来源:互联网 发布:java面试笔试题 编辑:程序博客网 时间:2024/06/11 06:55
http://blog.csdn.net/cryeyes/article/details/4707386
Windows Presentation Foundation
如何:创建多行 TextBox 控件
更新:2007 年 11 月
本示例演示如何使用可扩展应用程序标记语言 (XAML) 定义一个 TextBox 控件,该控件将自动扩展以容纳多行文本。
示例
将 TextWrapping 属性设置为 Wrap 会导致输入的文本在到达 TextBox 控件的边缘时换至新行,必要时会自动扩展 TextBox 控件以便为新行留出空间。
将 AcceptsReturn 属性设置为 true 会导致在按 Return 键时插入新行,必要时会再次自动扩展 TextBox 以便为新行留出空间。
VerticalScrollBarVisibility 属性向 TextBox 添加一个滚动条,以便在 TextBox 超出包含它的框架或窗口的大小时,可以滚动 TextBox 的内容。
C#
复制代码
<TextBox Name="tbMultiLine" TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Visible"> This TextBox will allow the user to enter multiple lines of text. When the RETURN key is pressed, or when typed text reaches the edge of the text box, a new line is automatically inserted.</TextBox>
- WPF 创建多行TextBox
- WPF 创建多行 TextBox 控件
- 如何给WPF TextBox设置行高
- wpf学习笔记---TextBox
- WPF Textbox的使用
- [WPF]Watermask TextBox Style
- WPF TextBox 验证输入
- WPF 圆角textbox
- WPF TextBox数据验证
- wpf TextBox 验证
- wpf TextBox日志文本框
- WPF 水印 TextBox MaskedTextBox
- wpf TextBox 验证
- WPF中自动增加行(动画)的TextBox
- WPF中设置TEXTBOX为多行文本输入框
- WPF下TextBox允许多行文本的设置
- WPF中设置TEXTBOX为多行文本输入框
- WPF中设置TEXTBOX为多行文本输入框
- 马尔科夫随机场(MRF)与吉布斯分布(Gibbs)
- python 通过_getframe获取函数名行号和调用函数
- Android中常用的五种布局
- 我在一个页面嵌入了iframe,并且我想获得这个iframe页面某个元素的值。
- codeforces 353D.Queue
- WPF 创建多行TextBox
- java定时器
- 将CString的字符串写入文件
- [算法导论][排序算法]快速排序(quick sort)
- poj3286
- 客户的一些问题
- 让myeclipse默认以文本编辑器的方式打开jsp文件
- Ubuntu 12.04 启动时环境变量加载顺序(脚本调用顺序)
- InputStream.read(byte[] b,int off,int len)