This article is a mirror article of machine translation, please click here to jump to the original article.

View: 18670|Reply: 0

[WPF] WPF TextBox allows the setting of multiple lines of text

[Copy link]
Posted on 3/17/2016 11:47:25 AM | | |

(1) Set TextWrapping to "Wrap"

(2) Set AcceptsReturn to "True"

(3) Set VerticalScrollBarVisibility to "Visible"

<TextBox margin="11,121,11,15" name="txtBoxTel" tag="Hello everyone" TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Visible"></TextBox>





Previous:The WPF background dynamically modifies the attribute values of the control template
Next:WPF allows forms not to display maximize, minimize, and close buttons
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com