Is there a way to group or temporarily disable the undo history for a RichTextBox?
问题 I'm currently wrestling with Tables inside RichTextBoxs in WPF. In WPF, tables don't have rows and columns, they just have rows, each having a certain number of cells. When a user presses the "Add Column" button, my program adds a new cell to each row. The problem with using this method is after a user adds a column, if they press undo, it removes each cell one by one, obviously not what the user would expect. Does anyone know a way to temporarily disable the addition of actions to the undo