UWP - TextBlock new line example

MainPage.xaml

<Page
    x:Class="UniversalAppTutorials.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:UniversalAppTutorials"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
    <StackPanel 
        x:Name="StackPanel1" 
        Margin="50" 
        Orientation="Vertical"
        Background="AliceBlue"
        Padding="50"
        >
        <Border Background="Navy" Margin="10">
            <TextBlock
                x:Name="TextBlock1"
                Margin="50"
                FontSize="25"
                Foreground="White"
                FontFamily="Consolas"
                >
                This is first line.
                <LineBreak/>
                This is second line.
                <LineBreak/>
                This is third line.
            </TextBlock>
        </Border>
        <Border Background="Violet" Margin="10">
            <TextBlock
                x:Name="TextBlock2"
                Margin="50"
                FontSize="30"
                FontFamily="MV Boli"
                Text="First line. "
                Foreground="Snow"
                />
        </Border>
        <Border Background="Yellow" Margin="10">
            <TextBlock
                x:Name="TextBlock3"
                Margin="50"
                FontSize="30"
                Foreground="Crimson"
                />
        </Border>
    </StackPanel>
</Page>
MainPage.xaml.cs

using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Documents;


namespace UniversalAppTutorials
{
    public sealed partial class MainPage : Page
    {
        public MainPage()
        {
            this.InitializeComponent();

            // Put a line break on second text block
            TextBlock2.Inlines.Add(new LineBreak());

            // Initialize a new Run instance
            Run run = new Run();

            // Set the text for run
            run.Text = "New line programmatically.";

            // Finally, show the new text on second line
            TextBlock2.Inlines.Add(run);

            // Another way to add new line on text block
            TextBlock3.Text = "First Line.\nSecond line.";
        }
    }
}