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 });
Is the problem solved?
Hello Amy,
I created the following case for you: 'CAS-116738-C6C2H5' and will update you through it. You could see it in your account in the 'Support Activity' page.