MainFrameBarManager Class

The MainFrameBarManager manages the application's main window's menus, tool bars and the user customization capabilities in the XP Menus framework.
Object Model
MainFrameBarManager ClassBarManager ClassBars ClassBar ClassIntList ClassBarCustomizationDialog ClassCustomizationDndHelper ClassCustomizationPanel ClassBarItem ClassImageListAdv ClassImageListAdv ClassImageListAdv ClassImageListAdv ClassImageListAdv ClassBarItems ClassBarItem ClassImageListAdv ClassMainFrameBarManager ClassBar ClassImageListAdv ClassImageListAdv ClassBarItem ClassBarManagerVisualStyle Class
<DescriptionAttribute("Manages an application's main window's menus, tool bars and user customization capabilities in XP Menus framework.")>
<ToolboxBitmapAttribute(Syncfusion.Windows.Forms.Tools.CommandBar, "ToolboxIcons.MainFrameBarManager.bmp")>
<DesignerAttribute(Syncfusion.Windows.Forms.Tools.Design.BarManagerDesigner, System.ComponentModel.Design.IDesigner)>
Public Class MainFrameBarManager 
   Inherits BarManager
   Implements Syncfusion.Windows.Forms.IIgnoreWorkingArea, Syncfusion.Windows.Forms.IVisualStyle, IBarItemsRepository, Syncfusion.WinForms.Theme.IThemeProvider 
Dim instance As MainFrameBarManager
[Description("Manages an application's main window's menus, tool bars and user customization capabilities in XP Menus framework.")]
[ToolboxBitmap(Syncfusion.Windows.Forms.Tools.CommandBar, "ToolboxIcons.MainFrameBarManager.bmp")]
[Designer(Syncfusion.Windows.Forms.Tools.Design.BarManagerDesigner, System.ComponentModel.Design.IDesigner)]
public class MainFrameBarManager : BarManager, Syncfusion.Windows.Forms.IIgnoreWorkingArea, Syncfusion.Windows.Forms.IVisualStyle, IBarItemsRepository, Syncfusion.WinForms.Theme.IThemeProvider  

Make sure to take a look at the BarManager's documentation before you start using this derived class.

You should associate an instance of this class with a form that will be the main form in an MDI scenario or the single top-level form in an SDI scenario.

Note that in an MDI scenario, optionally you can provide the MainFrameBarManager prior knowledge of the all the child form types that it might parent, in order that the menus and tool bars provide a seamless interface to the user even though they are part of different child forms' BarManager. You do this using the MainFrameBarManager's RegisterMdiChildTypes(Type[]) method.

If you do not call the RegisterMdiChildTypes method, the child menus will be added/merged with the parent menus as and when the child forms are added to the mdi parent.

When using this class in a SDI Form, it is recommended that you put all your controls in the form within a System.Windows.Forms.Panel with the DockStyle.Fill property set, so that they resize as the menu's height changes. This is necessary because the menus occupy the client area of the form. This is not necessary if you are using this in an MDI Container (IsMdiContainer property set to true).

Take a look at our XPMenus samples under the Tools\Samples\Menus Package folder for usage example.
Inheritance Hierarchy



Syncfusion.Tools.Windows: 18.2460.0.44

See Also