Understanding the RichTextBox Control

WPF offers a RichTextBox control that works as you would expect for some aspects, thus allowing advance formatting and image support, but it differs from other technologies in that such control stores its content as a flow document. This is the reason for discussing this control in the current chapter. In XAML code the control definition looks like this:

image

You could nest within the control the flow document shown in the previous section to get a fully editable document or simply write your text into the control, where such text takes standard formatting settings. You can also load an existing file into the ...

Get Visual Basic® 2010 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.