Amir Brand
Amir Brand

Reputation: 313

Syncfusion ribbons Tab - Alignment button to right

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 imageenter image description here.

How can I do that?

Thanks alot

Upvotes: 1

Views: 874

Answers (1)

Jawahar Suresh Babu
Jawahar Suresh Babu

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

Related Questions