Category / Section
How to programmatically change the barStyle of a bar in WinForms XPToolBar?
1 min read
Change the bar style
The XPMenus framework maintains a user-preferred BarStyle state for all the Bars in BarManagers. Please refer the below code snippet which illustrtaes this:
C#
bar2.BarStyle = Syncfusion.Windows.Forms.Tools.XPMenus.BarStyle.AllowQuickCustomizing; bar2.BarStyle = Syncfusion.Windows.Forms.Tools.XPMenus.BarStyle.IsMainMenu; bar2.BarStyle = Syncfusion.Windows.Forms.Tools.XPMenus.BarStyle.Visible;
VB
bar2.BarStyle = Syncfusion.Windows.Forms.Tools.XPMenus.BarStyle.AllowQuickCustomizing bar2.BarStyle = Syncfusion.Windows.Forms.Tools.XPMenus.BarStyle.IsMainMenu bar2.BarStyle = Syncfusion.Windows.Forms.Tools.XPMenus.BarStyle.Visible