I have a RichEditBox
and a TextBox
. What I want to achieve is to "combine" the undo history of both controls, as if they were one text box. When the user performs an undo in one of both elements, it should actually occur in the control with the most recent event to undo.
For example, when I type some text in text box A and then some text in text box B before executing an undo in one of both elements, I want the input in B to be removed.
I have thought about the TextChanged
event to build my own undo queue, but I don't see a possibility to group the entered characters like in RichEditBox
. Undoing character by character is not a satisfactory user experience in my eyes.
Does anyone know a simple solution or a workaround for this problem?