Record some forgettable attribute of TextBlock in xaml

Posted by JP on June 17, 2022

XAML – Add Newline or line break in the Text attribute of TextBlock

<TextBlock Text ="DeveloperPublish.com &#x0a; @isenthil"/>

XAML - Use LineBrake

<TextBlock>
DeveloperPublish.com
<LineBreak/>
@isenthil
</TextBlock>

XAML - How to display a text in XAML which contains double and single quotation marks

You should encode the special characters:

<TextBlock Text='You shouldn&apos;t choose &quot;Copy if New&quot;:'/>
- &apos; for '
- &quot; for "

Reference: