Category / Section
How to achieve MS Office2016 like appearance in WinForms RibbonControlAdv?
1 min read
Appearance
In RibbonControlAdv, it is possible to achieve the MS Office2016 like appearance by setting it property named RibbonStyle as TouchStyle, class named TouchColorTable and function named ApplyTouchColorTable.
Note:
All RibbonItems appearance can be customized in RibbonControlAdv in TouchStyle.
C#
//Sets the Office2013 style. this.ribbonControlAdv1.BackStageNavigationButtonStyle = BackStageNavigationButtonStyles.Office2013; //Sets the Color for Ribbon Panel. TouchStylecolor.RibbonPanelBackColor = Color.FromArgb(178, 178, 178); //Sets the color for the Active ToolStrip. TouchStylecolor.ToolstripActiveTabItemForeColor = Color.White; //Sets the Back color for the Active ToolStrip. TouchStylecolor.ActiveToolStripTabItemBackColor = Color.FromArgb(178, 178, 178); //Sets the color for the BackStage. TouchStylecolor.BackStageTabColor = Color.FromArgb(68, 68, 68); //Sets the color for BackStage button. TouchStylecolor.BackStageButtonColor = Color.Black; //Sets the color of the tab for hover state. TouchStylecolor.HoverTabBackColor = Color.FromArgb(42, 141, 212); //Sets the color for the BackstageTab. TouchStylecolor.BackStageTabColor = Color.FromArgb(42, 141, 212); //Disables the default highlight color of RibbonControlAdv this.ribbonControlAdv1.UseDefaultHighlightColor = false; //Sets the Ribbon style this.ribbonControlAdv1.RibbonStyle = RibbonStyle.TouchStyle;
VB
'Sets the Office2013 style. Me.ribbonControlAdv1.BackStageNavigationButtonStyle = BackStageNavigationButtonStyles.Office2013 'Sets the Color for Ribbon Panel. TouchStylecolor.RibbonPanelBackColor = Color.FromArgb(178,178,178) 'Sets the color for the Active ToolStrip. TouchStylecolor.ToolstripActiveTabItemForeColor = Color.White 'Sets the Back color for the Active ToolStrip. TouchStylecolor.ActiveToolStripTabItemBackColor = Color.FromArgb(178, 178, 178) 'Sets the color for the BackStage. TouchStylecolor.BackStageTabColor = Color.FromArgb(68, 68, 68) 'Sets the color for BackStage button. TouchStylecolor.BackStageButtonColor = Color.Black 'Sets the color of the tab for hover state. TouchStylecolor.HoverTabBackColor = Color.FromArgb(42, 141, 212) 'Sets the color for the BackstageTab. TouchStylecolor.BackStageTabColor = Color.FromArgb(42,141,212) 'Disables the default highlight color of RibbonControlAdv Me.ribbonControlAdv1.UseDefaultHighlightColor = False 'Sets the Ribbon style Me.ribbonControlAdv1.RibbonStyle = RibbonStyle.TouchStyle
Figure 1. Achieve MS Office2016 like appearance in RibbonControlAdv with image
Samples:
C#: How to achieve MS Office2016 like appearance in RibbonControlAdv?
VB: How to achieve MS Office2016 like appearance in RibbonControlAdv?
Reference link: https://help.syncfusion.com/windowsforms/ribbon/appearance