Problem with go:Diagram.Model

I have created a module in Prism which get loaded side by side in shell.
When i copy node from left side to right side using event aggregator both left and right
diagram model get updated instead of just right side.

Here is how im doing :

<span =“Apple-tab-span” style=“white-space:pre”> workflowDiagram.StartTransaction(“Node”);
<span =“Apple-tab-span” style=“white-space:pre”> workflowDiagram.Model.AddNode(copyNode.Data);
workflowDiagram.CommitTransaction(“Node”);<span =“Apple-tab-span” style=“white-space:pre”>

Is there a way i can force “Key” asssignment on AddNode()? Looks like GoXam assign key by default.

As you say, the model will automatically assign a unique key to the node data when it is added to the model. So I do not understand what it is that you need to do.

You can certainly assign the key in code before adding the data to the model.

Thank you for reply, Assigning key to node data before adding to model resolved my issue.