Newline in a WPF-label?

前端 未结 5 2013
梦毁少年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:21

    An example of how to add a ToolTip with multiple lines to a control, such as a button. The tooltip is width limited so it will wrap if a sentence is too wide.

    
    
    

    Tested on VS2019 + .NET 4.6.1 + WPF.

提交回复
热议问题