After getting the text in the RichTextBox I want to clear the text. How can I do that?
TextRange txt = new TextRange(richtxtSNotice.Document.ContentStart, ri
I found that clearing the richTextBox didn't always remove all of the text from the richTextBox using richTextBox.Text = ""; or richTextBox.Clear(); Only the first few lines were cleared.
To fix this issue, I included the Update() function call solved this issue.
richTextBox.Clear();
followed by
richTextBox.Update();
to reliably clear the richTextBox.