Hi Andre,
Thank you for your interest in Syncfusion Product.
We suggest you to use ControlNode class to add controls in your diagram to make your diagram more interactive.You have to set the ControlNode's ActiveStyle property as one of Click,DoubleClik,None,ClickPassThrough and SelectedClick ActiveStyle's values.Please refer the following code snippet that demonstrate how to add ControlNodes to diagram.
C#
private void Form1_Load(object sender, EventArgs e)
{
this.InsertButton();
this.InsertListBox();
this.InsertCheckBox();
}
private void InsertListBox()
{
lst = new ListBox();
lst.Items.Add("Sunday");
lst.Items.Add("Monday");
lst.SelectedIndex = 0;
lst.SelectedIndexChanged += new EventHandler
(lst_SelectedIndexChanged);
ControlNode ctrlnode = new ControlNode(lst, new RectangleF
(50, 110, 100,30));
ctrlnode.ActivateStyle = ActivateStyle.Click;
this.diagram1.Model.AppendChild(ctrlnode);
}
void lst_SelectedIndexChanged(object sender, EventArgs e)
{
label2.Text = lst.SelectedItem.ToString();
}
We have created a sample for your reference.Please refer the following sample.
Forum-1808050942.zipPlease let me know if you have any concerns.
Regards,
Pandi Murugan A