You can emulate the ClearUndo() control for WPF RichTextBox with the following code:
richTextBox.IsUndoEnabled = false; richTextBox.IsUndoEnabled = true;
But you cannot control any specific actions in the Undo list.
If you still want to implement your own Undo/Redo mechanism, the simplest and easiest way is to store the entire text of the control in an array with every significant change to the text. But I would advise this only if you do not plan to edit the large text using the control.
Max shmelev
source share