GoXam link draw order

Hi, How do I get the order in which the links are getting created. I mean which link is create first, then after that which link is created.
For example.
I have 10 links in one diagram. I want to order them in such a way that link created first will have lowest number and link created last will have highest number.

Please suggest.

Created by whom? By the user or by any code (including by the user’s actions)?

For the user case, implement a Diagram.LinkDrawn event handler.

For the general case, implement a GraphLinksModel.Changed event handler, looking for the ModelChange.AddedLink change.

Presumably you have added a property on the link data class to record the creation order.