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

Hiding ApplicationMenuButtonElement

2 Answers 64 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Kuba
Top achievements
Rank 1
Kuba asked on 23 Aug 2013, 01:46 PM
Hi!

I have one question. Is it possible to delete the ApplicationMenuButtonElement from the Ribbon? I did it using "Visibility" property (Value = Collapsed), but my Tabs aren't still on the left side (see attachment). I hope you can help me.

Many Thanks

Kuba

2 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 26 Aug 2013, 07:19 AM
Hello Kuba,

Thank you for writing.

In addition to collapsing the button, you need to reset the padding/margin (depending on the theme used) of items container holding the tabs. Here is a snippet:
radRibbonBar1.RibbonBarElement.ApplicationButtonElement.Visibility = ElementVisibility.Collapsed;
StripViewItemContainer tabsContainer = this.radRibbonBar1.RibbonBarElement.TabStripElement.ItemContainer;
tabsContainer.Padding = new Padding(0, tabsContainer.Padding.Top, tabsContainer.Padding.Right, tabsContainer.Padding.Bottom);
tabsContainer.Margin = new Padding(0, tabsContainer.Padding.Top, tabsContainer.Padding.Right, tabsContainer.Padding.Bottom);

I hope this helps.

Regards,
Stefan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Kuba
Top achievements
Rank 1
answered on 26 Aug 2013, 08:38 AM
Thanks! It works!

Kuba
Tags
RibbonBar
Asked by
Kuba
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Kuba
Top achievements
Rank 1
Share this question
or