Check out example codes for "wpf textblock line break code behind". It will help you in understanding the concepts better.

Code Example 1

TextBlock tb = new TextBlock();
tb.Inlines.Add(new Run("Hello"));
tb.Inlines.Add(new LineBreak());
tb.Inlines.Add(new Run("Would you please just work?"));

Code Example 2

TextBlock tb = new TextBlock();
tb.Text = "Hello" + Environment.NewLine + "Would you please just work?";

Learn ReactJs, React Native from akashmittal.com