I'm using an Infragistics.Win.UltraWinToolbars.UltraToolbarsManager (volume 13.2), and I have it setup so that I'm not using the ribbon -- just the application menu. I am trying to modify the height of the ribbon tab area that remains which, by default, is an empty bar that is approximately 25 pixels high.Could someone please help me to modify the height of that area? I figure it requires a draw filter, but I'm not quite sure how to do it.
Hello,
The ribbon uses the toolbar's UltraToolbarsDockArea on the top for rendering the ribbon and the ribbon will resize this to the appropriate size. You can limit the size of the top dock area by setting the MaximumSize of the dock area:
this._Form1_Toolbars_Dock_Area_Top.MaximumSize = new Size(0,30);
While this will resize the area reserved, it will also cut the application menu button since the ribbon will not be rendered outside of the control and there isn't enough room in the dock area for the application menu. The application menu will still be usable but there would be a gap between where it is cut off and where the application menu will show over the form. If you used a size with a height of 33 the gap may disappear though you will see the top of the tab area being rendered.
Let me know if you have any questions with this matter.
Thanks Alan. How would I increase the height of the area in question instead of decreasing it?
Could I just set the minimum size of that area in a similar way?
Hello Rory,
Glad to hear! Have a great day.
Michael, that worked. Thank you.
I attached a new project built with VS 2010 Infragistics 13.2
Let me know if you have any questions regarding this matter.
Michael,
The VS solution will not open for me....literally nothing happens when I try to open it. Is it VS 2010?
Meanwhile, I tried to adapt the code to my project, and the line is still there.
-Rory
I have identified the blue line as the TabLineUIElement. This can be removed by using a Draw Filter and applying the following if check within the GetPhasesToFilter method.
if (drawParams.Element is TabLineUIElement) return Infragistics.Win.DrawPhase.BeforeDrawBorders; else return Infragistics.Win.DrawPhase.None;