Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
400
Ribbon Length.
posted

Hello,

 

 I need to set the ribbon length to ribbon group created for that particular ribbon tab.

 

Please suggest me how to set the ribbon length during run time or even during design. Please provide all the options available to set the ribbon length.

Parents
  • 27093
    Verified Answer
    posted

    Hello,

    Usually the Ribbon isn't designed to be resizable, but you can always try the CreationFilter. You can do something like this in the AfterCreateChildElements event:

                     RibbonAreaUIElement ribbArea = parent as RibbonAreaUIElement;

                    if (ribbArea != null)

                    {

                        Rectangle newRect = new Rectangle(ribbArea.Rect.X, ribbArea.Rect.Y, 200, ribbArea.Rect.Height);

                        ribbArea.Rect = newRect;

                    }

    which will set its width to 200.

    Hope this helps.

    Sincerely,

    Petar Monov,

    DS Engineer,

    Infragistics Bulgaria

     

Reply Children