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.
Hello Petar,
I had gone through the documentation link sent. Finally i wrote the coding successfully. Let me provide the code which may be useful for our members.
ultraToolbarsManager1.CreationFilter = new class1();
public partial class class1 : IUIElementCreationFilter { #region IUIElementCreationFilter Members public void AfterCreateChildElements(UIElement parent) { RibbonTabPageUIElement ribbArea10 = parent as RibbonTabPageUIElement;
if (ribbArea10 != null) { Rectangle newRect = new Rectangle(ribbArea10.Rect.X, ribbArea10.Rect.Y, 400, ribbArea10.Rect.Height); ribbArea10.Rect = newRect; } } public bool BeforeCreateChildElements(UIElement parent) { return false; } #endregion
}
The code above provided is for the reduction of the RibbonTab alone.
It can also be done for quickaccesstoobbar, tabitemtoolbar CaptionArea, CaptionButton by using the appropiate Uielement class at Italized point.
Once again Thankyou Petar for the Guidance Provided.