The TextBlock control in WPF is a lightweight UI element, which is used to display text content to the screen. Almost everywhere, you will use this element in your application UI to display plain text in a single line or a multiline format. To add simple plain text, you can either write <TextBlock Text="Text message" /> or <TextBlock>Text message</TextBlock> in your XAML page.
In this recipe, we will explore more about this UI element.