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
195
Adding a control to UltraToolbarsManager causes issues!
posted

I'm manually adding a control to the UltraToolbarsManager.Ribbon.Group.  When I scroll past it, the control comes out of the toolbar, and lays OVER the over-flow bar.

Two things:

1.  How do I make the control be a part of the ribbon, so the over-flow bar is not behind the control

2.  How do I make the over-flow bar a little wider, so it's easily visible?

I'm running the following code in the form_shown

Infragistics.Win.UltraWinToolbars.

RibbonGroup myRibbonGroup = this.ultraToolbarsManager1.Ribbon.Tabs["ribbon1"].Groups["ribbonGroup1"];

myRibbonGroup.Settings.CanCollapse = DefaultableBoolean.False;

UserControl1 myuserControl = new UserControl1();

Infragistics.Win.UltraWinToolbars.ControlContainerTool myContainer = new Infragistics.Win.UltraWinToolbars.ControlContainerTool("myContainer");

myContainer.InstanceProps.PreferredSizeOnRibbon = Infragistics.Win.UltraWinToolbars.RibbonToolSize.Large;

myContainer.InstanceProps.MinimumSizeOnRibbon = Infragistics.Win.UltraWinToolbars.RibbonToolSize.Large;

myContainer.Control = myuserControl;//Assinged the user control

//It needs to be added into the tool collection first...

this.ultraToolbarsManager1.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] { myContainer });

//Add into the Ribbon Group

myRibbonGroup.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] { myContainer });

ControlOverRibbon.zip