将 TextWrapping 属性设置为 Wrap 会导致输入的文本在到达 TextBox 控件的边缘时换至新行,必要时会自动扩展 TextBox 控件以便为新行留出空间。

将 AcceptsReturn 属性设置为 true 会导致在按 Return 键时插入新行,必要时会再次自动扩展 TextBox 以便为新行留出空间。

相关文章:

  • 2022-01-06
  • 2021-10-06
  • 2021-12-09
猜你喜欢
  • 2021-11-24
  • 2021-10-09
  • 2022-12-23
  • 2021-05-30
  • 2022-12-23
  • 2021-12-05
  • 2021-09-23
相关资源
相似解决方案