Hi Satish,
With regards to Not able to position the nodes when using ItemSource on DiagramModel, we have created a sample to address your query. Please refer to the attachment .
Details:
After analyzing your code snippet, we can see that you are using ItemSource to DiagramModel as observablecollection of Node. This creates the reported problem.
Steps to achieve:
1. ItemSource to DiagramModel must contain a collection of Node’s content (UIElement, Business Object), but not collection of Node.
2. OffsetX and OffsetY are dependency property that can be bounded to Offset property of Node’s Content.
3. The DataTemplate of the Node content can be specified using ContentTemplate property of the Node.
We have achieved your requirement using the above steps.
Please let us know if you have any concerns.
Regards,
Ramya
ManualLayoutDiagram_d79f44a.zip