Duplicating BarItems
---------------------
1)Create a new ->Project-> Classlibrary 'WindowsForms'.
2)Add a usercontrol 'BasePanel' and place a 'XpToolBar' control.
3)Go to properties of 'XpToolBar' change modifier to protected and add two baritems 'Add' and 'Edit' with protected modifier to the items collection.
4)Add one more usercontrol 'WindowsDetailPanel' in the same project and inherit the above usercontrol 'BasePanel'.
5)Now Re-Build the solution.
6)Now add new Windows Application project in the same solution 'Client' and place the above 'WindowsForms' dll.
7)Add a usercontrol 'ClientUserControl' and inherit the WindowsForms.WindowsDetailPanel, now you will find the 'XpToolBar' in the designer and now click on the 'XpToolBar' properties and add one baritem 'Clone' with protected modifier.
Now in the designer we find three baritems('Add', 'Edit' and 'Clone'), it is correct.
Re-Build and see the 'ClientUserControl' in the design mode you will find four baritems('Add', 'Edit','Add', 'Edit').
Here is the attachment of the WindowsForms.sln.
Look Clinet.ClientUserControl.
Thank's
Raghavendra
WindowsForms.zip