Newline in a WPF-label?

前端 未结 5 2014
梦毁少年i
梦毁少年i 2020-12-13 16:50

How can I add a newline in the text of a label in WPF such as the following?


5条回答
  •  無奈伤痛
    2020-12-13 17:19

    in WPF you can use the value " " or " "

    For example:

    ("10" is the ASCII number for newline)

    or

    ("A" is the ASCII number for newline in hex)

    Example, with a border arround label to show boundry

提交回复
热议问题