Iterate through DevExpress Menu items in extraBar

How to iterate through DevExpress Menu items in XtraBar ?

I need to iterate with a loop through all the menu items in xtrabar and i need to remove certain menu item on the way if some conditions are satisfied ?

Last updated:11/20/2014 6:05:27 AM

1 Answers

Royce Roy
Royce Roy

Try following:

    foreach(DevExpress.XtraBars.BarItem item in bar.Manager.Items)
    {
       //Do sth.
    }

Answer