Hi,
In my application , i create an OrthogonalConnector between 2 nodes programmatically.See attachment.
When the user presses the "delete" key and the mouse points at one of the nodes ,
i catch the event diagram.Model.EventSink.NodeCollectionChanging.
Inside the event,i want to cancel the deletion by running the command :
(CollectionExEventArgs) e.cancel=true;
I attached the function content(NodeCollectionChanging.txt)
After execution , the node is indeed not deleted,but the problem is that the value of Node.Edges.Count is 0.
That means ,that the deletion command was cancelled only partially.
What should i do in order to cancel the deletion completely?
Thanks ,
Shimon.
Shimon_2363dfc7.zip