The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
MyRebuildTree(); //this also sets a new diagramModel.LayoutRoot node
DirectedTreeLayout tree = new DirectedTreeLayout(diagramModel, diagramView); tree.RefreshLayout();
I also tried this:
DirectedTreeLayout tree = new DirectedTreeLayout(diagramModel, diagramView); tree.PrepareActivity(tree); tree.StartNodeArrangement(); tree.RefreshLayout(); (diagramView.Page as DiagramPage).InvalidateMeasure(); (diagramView.Page as DiagramPage).InvalidateArrange();
The problem I am having is the diagram model's nodes are not being removed/cleared. When the tree is redrawn the old nodes appear stacked in one corner of the display.
How do you remove nodes/connections from the diagram model?