Reputation: 313
I build application with ribbonForm
by Syncfusion
winform.
I want that in one of the ribbon tab it will be a button that alignment to right (all the other buttons alignment to the left).
I made paint to Demonstrate what I mean in the attached image.
How can I do that?
Thanks alot
Upvotes: 1
Views: 874
Reputation: 11
The tab area of the RibbonControlAdv
is a toolstriptabitem. By default its child is ToolStripEx
but we can add other controls like button, by add it in toolstrippanel’s controls. To meet your requirement the button has been added to the right side of the Ribbon Tabs.
button = getButton();
this.toolStripTabItem1.Panel.Controls.Add(button);
this.toolStripTabItem1.Panel.Controls.SetChildIndex(button, this.toolStripTabItem1.Panel.Controls.Count - 1);
button.BringToFront();
You can also download a sample here.
Upvotes: 1