Understanding the RichTextBox Control
WPF offers a RichTextBox
control that works as you would expect for some aspects, thus enabling advanced formatting and image support. However, it differs from other technologies in that this 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:
<RichTextBox Name="RichTextBox1"> <!-- add your flow document here --></RichTextBox>
You could nest within the control the flow document shown in the previous section to get a fully editable document or write your text into the control, where such text takes standard formatting settings. You can also load an existing ...
Get Visual Basic 2015 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.