RichTextBlock

A typical first reaction to discovering the RichTextBlock element is, “Isn’t TextBlock already rich?” TextBlock can do a lot when it comes to formatting text, but RichTextBlock adds two big new tricks:

Image Embedding arbitrary UIElements among text

Image Letting text overflow into separate elements, which enables multicolumn text or other custom text layouts

Except for these two features, TextBlock and RichTextBlock are almost identical. They expose the same methods, properties, and events, although RichTextBlock happens to have an extra

Get XAML Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.