Hiding ApplicationMenuButtonElement

3 posts, 0 answers
  1. Kuba
    Kuba avatar
    13 posts
    Member since:
    Aug 2013

    Posted 23 Aug 2013 Link to this post

    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. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 26 Aug 2013 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Kuba
    Kuba avatar
    13 posts
    Member since:
    Aug 2013

    Posted 26 Aug 2013 Link to this post

    Thanks! It works!

    Kuba
Back to Top