microsoft/automatic-graph-layout

PLS help with WPF add node trouble

VRCHarbor opened this issue · 1 comments

Hi! I have a problem with adding a new node in WPF project.
I tried to find an example on your repository, but i cannot find solution for this case.

image
when i try to add a new node and try to drag nodes - application throws "KeyNotFoundException"
image

code source you can check here

I believe you need to use one of Microsoft.Msagl.WpfGraphControl.GraphViewer.AddNode() methods. Then the viewer will know about the added node.