Multi-line tool tip in wpf using c #

I want to use a multiple line tooltip in wpf but it looks like

line 1 


but I want to display this prompt on the command line in the given format

line 1
line 2



source to share

3 answers

I personally prefer to insert 

(newline) into lines that I will use as hints.

ex. Tooltip="line 1 
line 2"

I can then load the strings from the resource files and use them conveniently if I don't want them to go through any additional formatting.



Here's how to do it using Label as an example:

             <TextBlock>Line 1</TextBlock>
             <TextBlock>Line 2</TextBlock>




This worked for me and I don't see anything like this in the answers:

        Some text here.
        And more text in a new line.




All Articles