O'Reilly logo

XAML Unleashed by Adam Nathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

RichEditBox

RichEditBox is a version of TextBox that enables the display and editing of rich-formatted text. The reason it’s called RichEditBox rather than the more obvious RichTextBox is that it’s a thin wrapper over rich text formatting exposed by the Windows Runtime, which is a whole different set of APIs than the XAML-specific rich text formatting APIs. The “rich edit” term also has a long history in Win32.

The implication of this is that interacting with RichEditBox feels a lot less like interacting with a typical XAML control and instead has an API style that betrays its Windows Runtime roots. RichEditBox has a Document property of type ITextDocument rather than BlockCollection. The property is read-only, and there’s no public class that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required