MA
Maria Amal Raj T
Syncfusion Team
April 8, 2011 11:37 AM UTC
Hi Mary,
After creating new nodes please update the layout before updating RefreshLayout() as shown in the following code snippet.
Code Snippet :
diagramModel.Nodes.Clear();
diagramModel.Connections.Clear();
MyRebuildTree();
//Update the page layout
diagramView.Page.UpdateLayout();
DirectedTreeLayout tree = new DirectedTreeLayout(diagramModel , diagramView);
tree.RefreshLatout();
Please let us know if you have any further queries.
Regards,
Maria Amal Raj T,
Diagram WPF & Silverlight Team,
[Syncfusion].