I noticed the same behavior. It should work by firing the MapItemChanged event with "Removing", remove the item, then fire MapItemChange with "Removed." But since it doesn't, you can create a System.Windows.Forms.Timer to check Application.IsDocumentDirty and call Application.SaveDocument at a specified Timer interval.You can also create a handler for Application.DocumentClosed (which will fire upon document closing and application exiting) check Application.IsDocumentDirty and call Application.SaveDocument.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.