Hi,
I have Nodes. The Node.Data is from Type Element. This Element has a List of properties where the Nodes Visual is bound to. But the values of this properties are not fix in the Element, they came from a Dictionary where for every Element there are Lists of different property values.
So if I want to use copy and paste, it is not done with copying the node. I must have a way to create a new dictionary entry for the new node and copy the originals list of property values to that new entry.
I did a ugly hack with the CommandHandler.Copy and CommandHandler.Paste Methods where I save a temporary list of the copied Nodes and on paste search them in the Dictionary to copy their properties. But this is not working if I try to copy a group, since only the group is selected and so on…
So I need some entry point in GoXam where I can do something on every node copy even if it comes from copying a group.
I tried CommandHandler.CopyToClipboard and PasteFromClipboard but I don’t see a way to give IDataCollection further information of my properties. I thought I can serialize my dictionary somehow and give it to the IDataCollection, so I can pull my properties out of it on PasteFromClipboard.