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

2 posts, 0 answers
  1. laimonassutkus
    laimonassutkus avatar
    9 posts
    Member since:
    Mar 2017

    Posted 07 Apr 2017 Link to this post

    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? 

  2. Hristo
    Hristo avatar
    1189 posts

    Posted 07 Apr 2017 Link to this post

    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.

    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.
Back to Top