How do I programmatically add text with line breaks to a textblock?
If I insert text like this:
helpBlock.Text = \"Here is some text.
I have one component XAML
Then I pass the string + Environment.NewLine;
Example:
textLog.Inlines.Add("Inicio do processamento " + DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss") + Environment.NewLine);
textLog.Inlines.Add("-----------------------------------" + Environment.NewLine);
The result is
Inicio do processamento 19/08/2019 20:31:13
-----------------------------------