Bug in RibbonBar resizing

2 posts, 0 answers
  1. Deborah
    Deborah avatar
    154 posts
    Member since:
    Sep 2010

    Posted 02 May 2011 Link to this post

    I am using the Ribbon bar. I am attaching a screen shot of the ribbon as shown in my application.

    When the user minimizes the application, and then restores it, the ribbon buttons are messed up as you can see from the second screen shot I am attaching. Notice that any buttons that are in button groups no longer have any text.

    If the user clicks the up arrow in the upper right corner to hide and then show the toolbar, it resizes back to the original display.

    Is this a known bug? Any idea on how soon it will be fixed?

    Thanks!
  2. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 05 May 2011 Link to this post

    Hello Deborah,

    Thank you for the writing.

    Another customer reported this form inheritance behavior as well. The collapse operation in RibbonBar elements is performed in the ExpandableStackLayout class and each item in it that derives from the CollapsibleElement class can be expanded or collapsed. By default, ExpandableStackLayout checks whether the sum of all sizes of the elements is larger than the available space and calls the CollapseToStep method for these elements with CollapseStep smaller than CollapseMaxSteps. In your scenario this logic is broken. There is an easy work-around with layout update on form resize:

     

    private void Form_Resize(objectsender, EventArgs e)
    {
                radRibbonBar1.RibbonBarElement.InvalidateMeasure(true);
                radRibbonBar1.RibbonBarElement.UpdateLayout();
    }

    If you have any further questions, do not hesitate to ask.

     

    Best wishes,
    Peter
    the Telerik team
    Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top