I am upgrading Syncfusion used in a .NET project from v7 to v13.3.
However, I have encountered the following problems:
- Bar seems changed to different style in blue
- Bar height is increased significantly
- The cell / header seems have more padding / margin
Can I know how to set the visual style back to before?
Attached please find the screen captures of the menu bar.
And the following is the relevant code of the menu:
// MainFrameBarManager and Bar
Bar mainBar;
MainFrameBarManager mainFrameBarManager = new MainFrameBarManager(form);
mainFrameBarManager.AutoLoadToolBarPositions = false;
mainFrameBarManager.AutoPersistCustomization = false;
mainFrameBarManager.EnableCustomizing = false;
mainBar = new Bar(mainFrameBarManager, name);
mainFrameBarManager.BeginInit();
mainFrameBarManager.Style = VisualStyle.Office2003;
mainFrameBarManager.Bars.Add(mainBar);
mainFrameBarManager.LargeIcons = false;
mainBar.BarStyle = BarStyle.IsMainMenu | BarStyle.Visible | BarStyle.DrawDragBorder | BarStyle.RotateWhenVertical | BarStyle.TextBelowImage | BarStyle.MultiLine;
mainBar.Manager = mainFrameBarManager;
mainFrameBarManager.EndInit();
// ParentBarItem
ParentBarItem parentBarItem = new ParentBarItem();
parentBarItem.ID = Guid.NewGuid().ToString();
parentBarItem.CategoryIndex = 0;
parentBarItem.Tag = new BarItemArgs(toolbarItem, mGeneration); // custom class
parentBarItem.Text = toolbarItem.Caption;
parentBarItem.Tooltip = toolbarItem.Description;
parentBarItem.PaintStyle = PaintStyle.ImageAndText;
parentBarItem.Shortcut = toolbarItem.Shortcut;
parentBarItem.Style = VisualStyle.Office2003;
Attachment:
MainMenu_3bdae911.zip