Hi Antonio,
You could use the XPToolBar.Items'' CollectionChanged event for this purpose as shown in the code below :
this.xpToolBar1.Items.CollectionChanged += new CollectionChangeEventHandler(BarItemsCollection_Changed);
private void BarItemsCollection_Changed (object sender, CollectionChangeEventArgs args)
{
if (args.Action == CollectionChangeAction.Add)
MessageBox.Show("BarItem Added");
else if (args.Action == CollectionChangeAction.Remove)
MessageBox.Show("BarItem Removed");
}
Please refer to the
sample attached here that shows how this can be done, and let me know if you need further assistance. We appreciate your interest in Syncfusion products.
Regards,
Guru Patwal
Syncfusion, Inc.