This article explains how to assign a string as the text/contents, getting the contents and clearing the contents of a RichTextBox in WPF.
Pro WPF: Windows Presentation Foundation in .NET 3.0