Hello,
I'm trying to use the SfDiagram control by creating a hierarchical collection of nodes (represented by their viewmodel) and setting the Nodes property. The issue is that when I call
ObservableCollection<IsolationStep> isolationSteps = (ObservableCollection<IsolationStep>)e.NavigationParameter;
diagram.Nodes = isolationSteps;
I get:
System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.UI.Xaml.Diagram.Layout.DirectedTreeLayout.GetLastChild(INode parent)
at Syncfusion.UI.Xaml.Diagram.Layout.DirectedTreeLayout.AdjacentRight(IInternalNode shape)
at Syncfusion.UI.Xaml.Diagram.Layout.DirectedTreeLayout.AllocateSpace(IInternalNode v, IInternalNode a, IInternalNode parent, IInternalNode prev, IInternalNode next)
at Syncfusion.UI.Xaml.Diagram.Layout.DirectedTreeLayout.DoFirstWalk(IIn
Can you please provide with some guidance on what should be wrong regarding the Nodes collection that I'm using?
Thank you in advance.