I am experimenting with the diagram and try to achieve the following:
I want to create a (simple) graphical programming interface that executes a function block (here: a node with a custom usercontrol) and when it has finished it's task it shall activte all connected nodes.
I was able to create the nodes programmatically with help of the ControlsGalore sample and also to access all following nodes ("ToNode") with help of the SimpleDrillDown sample.
However, I need to access the node containing my usercontrol from within my usercontrol to determine which nodes are linked to the current node. This is where I am failing right now. How can I do this?
NGNaganathan Ganesh Babu Syncfusion Team January 8, 2016 06:41 AM UTC
The ControlNode’s “HostingControl” property is used to get the control which is assigned in the control node and the Node’s “EdgesLeaving” property is used to get the Nodes which are connected from the current node also the property “EdgesEntering” is used to get the Nodes which are connected to the current node. Please refer to the below code example and sample.
[C#] //Getting connected nodes with current node ICollection collection1 = node.EdgesLeaving;
//Getting connected control nodes with current node control += ((node1 asConnectorBase).ToNode asControlNode).HostingControl.GetType().ToString();