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

No backstage menu but still room for the button

2 Answers 108 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Thomas Bargholz
Top achievements
Rank 1
Iron
Thomas Bargholz asked on 01 Feb 2019, 11:04 AM

Hi, 

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.

Regards

Thomas

2 Answers, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 04 Feb 2019, 09:08 AM
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.

Regards,
Hristo
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.
0
Thomas Bargholz
Top achievements
Rank 1
Iron
answered on 04 Feb 2019, 09:55 AM

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

Very nice, thanks :)

Tags
RibbonBar
Asked by
Thomas Bargholz
Top achievements
Rank 1
Iron
Answers by
Hristo
Telerik team
Thomas Bargholz
Top achievements
Rank 1
Iron
Share this question
or