How to customize the appearance of WinForms RibbonControl?
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.
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 forums, Direct-Trac, or feedback portal. We are always happy to assist you!