Hi,
I'd like to add nodes and connectors programmatically with a UserHandle.
On the OnUserHandleMouseDown event i have created a new node that relates
to the selected node and also added a connector. But the connector is not shown.
Btw: This works on the OnInitialized() without any problem.
public async void OnApplyShortcut(UserHandleEventsArgs args)
{
var selectedNode = this.Diagram.SelectedItems.Nodes.FirstOrDefault();
if (selectedNode == null) return;
var relatedNode = new DiagramNode();
this.Nodes.Add(relatedNode);
var connector = new DiagramConnector();
connector.SourceID = selectedNode.Id;
connector.TargetID = relatedNode.Id;
this.Connectors.Add(connector);
}