How to add a new line in the text?
I already have a lot of code and I'm looking for the easiest way not to change the overall structure
Resources:
<system:String x:Key="MyKey1">Line1 \n Line2</system:String>
Code:
<TextBlock>
u<Run BaselineAlignment="Subscript" FontSize="10">lim</Run> - <Run Text="{Binding TextFromMyKey1}"/>
</TextBlock>
The text from Resources enters TextFormMyKey1
I tested all the solutions and none works:
\n
- pressing enter


Here it should be noted that the text enters as a parameter in Run
<Run Text="{Binding TextFromMyKey1}"/>
NOTE for people who do not read the question:
The replies from the link below don't work here
This question is about putting the text in the <Run>
tag
Link to a question that does not answer my problem Newline in string attribute