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.
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
Hello Petar,
What does the word parent refers to in the coding you had provide.
I am not using any child form.
I am creating a ultraToolbarsManager at run time with Ribbon tabs, ribbon groups and its associated tool bars.
your coding gives me good understanding but i couldn't understand the term 'Parent'.
This may be silly matter to you Sir,But I am new to Infragistics .
Please Clarify.