Quote:1. use out of box VirtualizingDiagram, Do I suppose to only see nodes and links in the viewport? I attached an image from snoop to capture the diagram, the visible viewport is the rectangle on the left, I was hoping only see nodes in that rectangle.
You might be seeing more nodes if this tool intercepts the layout process and passes a larger arrange size to the diagram. If it just shows all current children of a control in a separate view, you can still see nodes outside of the viewport because they are not reused until number of elements reaches VisualCacheSize.
Quote:2. I am not be able to find RemoveHiddenItemsFromVisualTree property. Is it in VirtualizingDiagram class?
I think it's available since the v3.1 release, try upgrading to latest version.
Quote:3. I couldn't make VirtualizingDiagram collects ShapeNode as NodesSource. Tried 2 ways: 1) ShapeNode is the base class of NodeData, Create a collection of NodeData with different shape, brush...), 2) NodeData class with Shape, Brush as property, create a collection of NodeData.
4. When VirtualizingDiagram collects LinksSource, will it accept ControlPoint to create Links? My Links have control points, not directly go from origin to destination.
It doesn't seem the control expects actual ShapeNode and DiagramLink data objects, and for example it looks for X,Y properties in data items instead of Bounds. It should still be possible to use actual nodes and links as items, try setting node positions from ResolveNodePosition callback, and copying or binding other properties from InstantiateNode and InstantiateLink callbacks.
I hope that helps,
Stoyan