No backstage menu but still room for the button

3 posts, 1 answers
  1. Thomas Bargholz
    Thomas Bargholz avatar
    14 posts
    Member since:
    Oct 2006

    Posted 01 Feb 2019 Link to this post


    I'm trying to create a ribbon menu without the backstage menu (an quickaccess, and titlebar).

    By setting visibility to collabsed, I can remove all I want to remove, which is great. However, even though I have hidden the backstage menu, there is still room in the UI for it, so that the first ribbon tab is drawn as if it is there. I would like for the ribbon tabs to start on the left, as if the backstage menu was never there.

    How do I achieve this?

    Please see the screenshot for visual clue.



  2. Answer
    Hristo avatar
    1522 posts

    Posted 04 Feb 2019 Link to this post

    Hi Thomas,

    Indeed collapsing the visibility of the application menu button would not be enough to reposition the tab items. A possible solution is to handle the Load event of the form and apply a position offset to the element holding the tabs: 
    private void RadForm1_Load(object sender, EventArgs e)
        this.radRibbonBar1.RibbonBarElement.ApplicationButtonElement.Visibility = ElementVisibility.Collapsed;
        this.radRibbonBar1.RibbonBarElement.TabStripElement.ItemContainer.PositionOffset = new SizeF(-this.radRibbonBar1.RibbonBarElement.ApplicationButtonElement.Size.Width, 0);

    I hope this will help. Let me know if you need further assistance.

    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Thomas Bargholz
    Thomas Bargholz avatar
    14 posts
    Member since:
    Oct 2006

    Posted 04 Feb 2019 in reply to Hristo Link to this post

    Setting the offset for the ItemContainer on the TabStrib solved the problem.

    Very nice, thanks :)

Back to Top