WPF V1.2.2.4
Hello,
More specifically I am looking for the best way to
intercept the delete command to ask a user confirmation.
There are RemovingXXXX model changes, but I do not have found some example of use.
Thanks
Implement a Diagram.SelectionDeleting event handler. Have it set the DiagramEventArgs.Handled property to true if it wants to cancel the deletion.
(Alternatively and more generally: override CommandHandler.Delete, which is the implementation of the “Delete” command. Install your custom command handler by setting Diagram.CommandHandler, either in code or in XAML. But this probably isn’t needed for your situation.)