public void ReplaceCommit() { //it won't be memorized until the number of transactions get to 0, so delete first undoManager.Transactions.Remove(this); undoManager.IsEnabled = true; undoManager.ReplaceMemorize(); }