I have a MVVM RadDiagram setup that binds data via SerializableGraphSourceBase<T, U>. In that setup:
- When I change the Visibility property of any node object directly in RadDiagram.Items, the corresponding wrapper IShape object in RadDiagram.Shapes also updates its Visibility property. The node is visible/hidden/collapsed in on the graph's canvas.
- When I change the Visibility property of any edge object in RadDiagram.Items, the corresponding IConnection wrapper in RadDiagram.Connections does not update its visibility property. The connection is always drawn on the canvas.
What to do?
I had the same problem, where I couldn't change a RadDiagramConnection's visibility neither with Style triggers nor with Binding (only through directly setting their visibility). I fixed it by turning off the DiagramSurface.IsVirtualizing property.