This is a migrated thread and some comments may be shown as answers.

RibbonBar for WinForms Start button run-time options/exit/separator items

1 Answer 53 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
laimonassutkus
Top achievements
Rank 1
laimonassutkus asked on 07 Apr 2017, 07:41 AM

Hi. I was able to "remove" options and exit buttons which appear at run-time with this code:

this.radRibbonBar1.ExitButton.Visibility = ElementVisibility.Collapsed;
this.radRibbonBar1.OptionsButton.Visibility = ElementVisibility.Collapsed;

 

But how shall i remove this separator line over here which was above options and exit button? 

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 07 Apr 2017, 11:00 AM
Hello Laimonas,

Thank you for writing.

You can achieve your task by accessing the Border element of the application menu dropdown:
RadApplicationMenuDropDown applicationMenu = (RadApplicationMenuDropDown)this.radRibbonBar1.RibbonBarElement.ApplicationButtonElement.DropDownMenu;
((RadApplicationMenuDropDownElement)applicationMenu.PopupElement).BottomContentElement.Border.Visibility = ElementVisibility.Collapsed;

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
RibbonBar
Asked by
laimonassutkus
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or