Hi,
is there any possibility to stop history? In my case user writes into the radrichtextbox. If he writes some word/phrase, event DocumentContentChange is thrown and I make at this point something like:
Go throw the document and try to find "my" (from dictionary) words - set CaretPosition on the beginning of the document and then go step by step, word by word throw the document, setting selectionstart and selectionend and getting words from selection. If word is in my dictionary, set its foreground color.
After setting text foreground of whole document, colors are as shoud be. But problem is, that user cannot use undo/redo, because in history there are all selections used for coloring foregrounds. I need to make something like History.Stop()/Start() or finally set history from the beginning (but there is no setter).
Any idea how to work better with history? Any better solutions for my case? Maybe I shoud set foreground somehow a better way...
Thanks so much for help.
is there any possibility to stop history? In my case user writes into the radrichtextbox. If he writes some word/phrase, event DocumentContentChange is thrown and I make at this point something like:
Go throw the document and try to find "my" (from dictionary) words - set CaretPosition on the beginning of the document and then go step by step, word by word throw the document, setting selectionstart and selectionend and getting words from selection. If word is in my dictionary, set its foreground color.
After setting text foreground of whole document, colors are as shoud be. But problem is, that user cannot use undo/redo, because in history there are all selections used for coloring foregrounds. I need to make something like History.Stop()/Start() or finally set history from the beginning (but there is no setter).
Any idea how to work better with history? Any better solutions for my case? Maybe I shoud set foreground somehow a better way...
Thanks so much for help.