aby
aby

Reputation: 830

How to hide devexpress ribbonControl bar items on WinForms

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

Answers (2)

DmitryG
DmitryG

Reputation: 17848

Please use the BarItem.Visibility and RibbonPageGroup.Visible properties:

barButtonItem1.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
//...
ribbonPageGroup1.Visible = false;

Upvotes: 4

Related Questions