Hi Mathias,
Sorry for the inconvenience caused.
If you want to trigger Model.ChildrenChangeComplete event then please refer to the following code snippet
this.diagram1.Model.ChildrenChangeComplete += new Syncfusion.Windows.Forms.Diagram.NodeCollectionEventHandler(this.diagram1_Model_ChildrenChangeComplete);
private void diagram1_Model_ChildrenChangeComplete(object sender, Syncfusion.Windows.Forms.Diagram.NodeCollectionEventArgs evtArgs)
{
if(evtArgs.ChangeType==CollectionExChangeType.Insert)
{
Symbol symbol=evtArgs.Node as Symbol;
this.label1.Text=symbol.Name;
this.label1.ForeColor=Color.Green;
}
if(evtArgs.ChangeType==CollectionExChangeType.Remove)
{
Symbol symbol=evtArgs.Node as Symbol;
this.label2.Text=symbol.Name;
this.label2.ForeColor=Color.Orange;
}
}
I have attached the sample for your reference. In this sample when you add the symbol to the diagram you can get the added symbol's name in Label1. When you remove the symbol from the diagram its name gets displayed in label2.
You can download the sample from the following page.
http://websamples.syncfusion.com/samples/Diagram.Windows/F60499/main.htmPlease refer to the sample and let me know if you have any questions.
Thanks,
Nagaraj