Disabling the document History
is fairly simple using the IsEnabled property. Additionally, you can group several actions in a single undo group in the manner demonstrated here
or simply clear the history.
On a side note, traversing the whole content of a document on each change might cause some performance diminishment. If possible I'd suggest you revise this logic.
I hope this helps! Let me know if you have other comments or questions.
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>