I'm using a custom layout for the diagram and the nodes are not maintaining the location to which it was moved while laying out. Below is expected and actual layout of the nodes: [code] Expected: [Head_Node (10, 10)] [Node1 (112, 10)] [Node2 (129, 10)] [Node3 (112, 50)] [Node3 (132, 50)]Thanks.
The cordinates in the Expected layout are the values that I got while stepping through the DoLayout function code. The actual layout has cordinates different from the value assigned in the DoLayout function. The “Head_Node” has (46, 45) as the cordinate instead of (10, 10) assigned in the layout function.
The process of laying the nodes is as follow:
> Group nodes by type, get the Head_node > Set Head_node to initial position (10, 10) > Set nx = 10 + Head_Node.Bounds.Width + NodeSpacing, ny = 10 > y = ny > Foreach group in Groups * x = nx * Foreach node in group - Set node's position to (x, y) - set x = node.Bounds.Width + NodeSpacing * y += (max height of node in the group) + Node Spacing > Call base.DoLayout
I’m using GraphModel for Diagram’s Model. Is there anything I need to do so that the location of nodes doesn’t change?
Silverlight 4, goSilverlight 126.96.36.199