Hi
I adapted the height of a radRibbonBar with (radRibbonBarExpand):
this.radRibbonBar1.RootElement.MaxSize = new System.Drawing.Size(0, 120);
this.radRibbonBar1.RootElement.MinSize = new System.Drawing.Size(0, 120);
And wanted to change the height of the drop-downed tab the same size and tried (radRibbonBarDropDown):
this.ribbonTab1.MinSize = new System.Drawing.Size(0, 20);
this.ribbonTab2.MaxSize = new System.Drawing.Size(0, 50);
but the height stays the same. How is it possible to change this height?
Thank you in Advance
Kind Regards,
Dominik
4 Answers, 1 is accepted
Hello Dominik,
According to your description, I suppose that you want to reduce the height of the RadRibbonBarGroup when the tab is expanded. This can be done as shown below:
this.radRibbonBarGroup1.MaxSize = new Size(0, 20);
this.radRibbonBarGroup1.MinSize = new Size(0, 20);
I hope this helps. Should you have any other questions, I will be glad to help.
Regards,
Nadya
Progress Telerik
Hi Nadya,
Thank you for your answer.
Unfortunately, the proposed solution did not work. I must have put the question wrong. I want the height of the expanded tab to be the same as the height of the dropdowned tab. This is only the case in the vanilla code (only the elements in the [Design] added nothing changed). As soon as I adjust the height, the tabs are no longer at the same height. Is it possible to bring the tabs back to the same height? I put the code and an image which shows the problem in the attachment.
Many thanks in advance
Kind Regards,
Dominik
Hello Dominik,
Thank you for the provided additional information. It helps me to understand better your requirements. In order to achieve the height of the expanded tab to be the same as the height of the drop-down tab, you should set only MinSize/MaxSize to the RadRibbonBarGroups. I carefully reviewed the picture of the Designer.cs file that you have provided. I can suggest you to delete the row that sets the RootElement.MaxSize and set MaxSize of the group only.
I attached my test project as well. Could you please give it a try and see how it works for you.
I am looking forward to your reply.
Regards,
Nadya
Progress Telerik
Hi Nadya,
Thank you very much for your answer. It worked.
Kind Regards,
Dominik