本示例演示如何使用可扩展应用程序标记语言 (XAML) 定义一个 TextBox 控件,该控件将自动扩展以容纳多行文本。

将 TextBox 控件以便为新行留出空间。

将 TextBox 以便为新行留出空间。

TextBox 的内容。

<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>

相关文章:

  • 2022-02-11
  • 2022-12-23
  • 2021-11-01
  • 2022-03-01
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-03
  • 2021-07-06
  • 2021-06-05
  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
  • 2021-12-21
相关资源
相似解决方案