Hi, in my application i use the GraphLinksModel.
Since i need to adapt to an existing backend, i am in need to synchronize backend nodes and links with the UI nodes and links.
The models NodesSource is ObeservableCollection and LinksSource is ObeservableCollection.
Before i hang on the CollectionChanged event and there i synchronized with the backend, which worked partially.
After diving a bit further into the docs, i saw that i could make a CustomPartsManager, which i did.
I overwrote OnNodeAdded(Node node) and want to use this place, to also add a new node to the backend.
My problem is, that it seems that this is raised multiple times for a single node, which leads to multiple nodes in the backend.
How can i determine, that a node, which actually has been droped on the diagram raised the OnNodeAdded call?
And my current second problem is, that i do not have any location information where the operator dropped the node on the diagram. node.Location always is NaN/NaN ?
Am i using the correct place to synch with the backend? - Also i need to distinct, if a node has been added by drop or if it is a copy paste node.
Many thanks meanwhile, Hannes