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

Hide Ribbon Bar, keep window title

4 Answers 122 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 16 Nov 2018, 10:00 AM

Hello!

How do I hide the ribbon bar to keep the window title? Can't understand.

Or I hide the entire ribbon with the RibbonBar command.Visible = false

If I try to hide the TabStrip element, I have an empty bar from the window title to the next component.

4 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 19 Nov 2018, 07:34 AM
Hello Alex,

You can hide the following element and the title bar will remain visible:
radRibbonBar1.RibbonBarElement.TabStripElement.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
radRibbonBar1.RibbonBarElement.ApplicationButtonElement.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
radRibbonBar1.RibbonBarElement.ExpandButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Progress Telerik
Get quickly onboard 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
Alex
Top achievements
Rank 1
answered on 19 Nov 2018, 08:43 AM
Unfortunately it did not help (see screenshot). Instead of collapsed ribbon, empty space. In PageView below set Dock = DockStyle.Fill  and even Location is set to 0.0. But he still does not use this space.
0
Accepted
Dimitar
Telerik team
answered on 20 Nov 2018, 07:41 AM
Hi Alex,

You can use the maximum size:
radRibbonBar1.MaximumSize = new Size(0, 30);

Please note that the ribbon bar has a built-in collapse/expand functionality, you can use the expand button (under the close button) or double-click any tab.

Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Progress Telerik
Get quickly onboard 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
Alex
Top achievements
Rank 1
answered on 20 Nov 2018, 09:55 AM
Thank you very much, now everything is working correctly!
Tags
RibbonBar
Asked by
Alex
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Alex
Top achievements
Rank 1
Share this question
or