I saw the textnode sample. What i was looking for is a textnode as a label, something that exists as a property of a parentnode where i dont have to worry about node location,linking and other things.
>Hi Sash ,
Thanks for your interest in Syncfusion products.
You can use our "TextNode" as a hyperlink label and you can bring a diagram form when you click on it. Please refer to the below code snippet.
TextNode txtnode = new TextNode("Open a new DiagramForm");
txtnode.SizeToText(SizeF.Empty);
txtnode.PinPoint = new PointF(250, 30);
this.diagram1.Model.AppendChild(txtnode);
this.diagram1.EventSink.NodeClick += new NodeMouseEventHandler(EventSink_NodeClick);
void EventSink_NodeClick(NodeMouseEventArgs evtArgs)
{
DiagramForm m_dForm = new DiagramForm();
m_dForm.Show();
}
Here is the working sample.
http://websamples.syncfusion.com/samples/Diagram.Windows/F76905/main.htmPlease refer to it and let me know if this helps.
Thanks,
Nagaraj