Reputation: 830
I want to hide the DevExpress RibbonControl bar items (i know how to hide the page but not the pageGroup and items) based on user's criteria. However, i felt to find the right property to do that. I'm kindly asking for your helping hand.
Thanks
Upvotes: 0
Views: 7713
Reputation: 37
RibbonControl.Minimized = true
http://www.codeproject.com/Questions/266816/How-to-collapse-expand-ribbon-using-code-in-Devexp
Upvotes: 0
Reputation: 17848
Please use the BarItem.Visibility and RibbonPageGroup.Visible properties:
barButtonItem1.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
//...
ribbonPageGroup1.Visible = false;
Upvotes: 4