Articles in this section
Category / Section

How to customize the appearance of WinForms RibbonControl?

2 mins read

Customize the ribbon items

In TouchStyle Ribbon, each item of the WinForms RibbonControlAdv can be customized by using its property TouchStyleColorTable and function ApplyTouchStyleColorTable. The following code example demonstrates the same.

C#

//TouchStyleColorTable for RibbonControlAdv
TouchStyleColorTable TouchStyleColor = new TouchStyleColorTable();
//Sets the Header color of the RibbonControlAdv
TouchStyleColor.HeaderColor = ColorTranslator.FromHtml("#0272c5");
//Sets the ToolStrip border color
TouchStyleColor.ToolStripBorderColor = ColorTranslator.FromHtml("#0272c5");
//Sets the border color of the ToolStripTab item
TouchStyleColor.ToolstripTabItemBorder = ColorTranslator.FromHtml("#0272c5");
//Sets the menu button arrow color of the RibbonControlAdv
TouchStyleColor.MenuButtonArrowColor = Color.White;
//Sets the back color of the Ribbon panel
TouchStyleColor.RibbonPanelBackColor = Color.LightSkyBlue;
//Sets the hover color of the Button
TouchStyleColor.ButtonHoverColor = Color.Red;
//Applies the TouchStyleColorTable to RibbonControlAdv
this.ribbonControlAdv1.ApplyTouchStyleColorTable(TouchStyleColor);

VB

'TouchStyleColorTable for RibbonControlAdv
Private TouchStyleColor As New TouchStyleColorTable()
'Sets the Header color of the RibbonControlAdv
TouchStyleColor.HeaderColor = ColorTranslator.FromHtml("#0272c5")
'Sets the ToolStrip border color
TouchStyleColor.ToolStripBorderColor = ColorTranslator.FromHtml("#0272c5")
'Sets the border color of the ToolStripTab item
TouchStyleColor.ToolstripTabItemBorder = ColorTranslator.FromHtml("#0272c5")
'Sets the menu button arrow color of the RibbonControlAdv
TouchStyleColor.MenuButtonArrowColor = Color.White
'Sets the back color of the Ribbon panel
TouchStyleColor.RibbonPanelBackColor = Color.LightSkyBlue
'Sets the hover color of the Button
TouchStyleColor.ButtonHoverColor = Color.Red
'Applies the TouchStyleColorTable to RibbonControlAdv
Me.ribbonControlAdv1.ApplyTouchStyleColorTable(TouchStyleColor)

The following image shows the TouchStyleColortable applied to the RibbonControlAdv.

Show the customized ribbon items in RibbonControlAdv

 

Samples: Customize the appearance of RIbbonControlAdv

Conclusion

I hope you enjoyed learning about how to customize the appearance of WinForms RibbonControl.

You can refer to our WinForms RibbonControl feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied