Syncfusion.Tools.Windows
Members 


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
Syntax
'Declaration
 
<DescriptionAttribute("Manages an application's main window's menus, tool bars and user customization capabilities in XP Menus framework.")>
<TypeConverterAttribute(Syncfusion.Windows.Forms.Tools.Design.BarManagerConverter)>
<ToolboxItemAttribute(True)>
<ToolboxBitmapAttribute(Syncfusion.Windows.Forms.Tools.CommandBar, "ToolboxIcons.MainFrameBarManager.bmp")>
<ToolboxItemFilterAttribute("System.Windows.Forms")>
<DesignerAttribute(Syncfusion.Windows.Forms.Tools.Design.BarManagerDesigner, System.ComponentModel.Design.IDesigner)>
<DesignerCategoryAttribute("Component")>
Public Class MainFrameBarManager 
   Inherits BarManager
   Implements Syncfusion.Windows.Forms.IIgnoreWorkingArea, Syncfusion.Windows.Forms.IVisualStyle, IBarItemsRepository, Syncfusion.WinForms.Theme.IThemeProvider 
'Usage
 
Dim instance As MainFrameBarManager
[Description("Manages an application's main window's menus, tool bars and user customization capabilities in XP Menus framework.")]
[TypeConverter(Syncfusion.Windows.Forms.Tools.Design.BarManagerConverter)]
[ToolboxItem(true)]
[ToolboxBitmap(Syncfusion.Windows.Forms.Tools.CommandBar, "ToolboxIcons.MainFrameBarManager.bmp")]
[ToolboxItemFilter("System.Windows.Forms")]
[Designer(Syncfusion.Windows.Forms.Tools.Design.BarManagerDesigner, System.ComponentModel.Design.IDesigner)]
[DesignerCategory("Component")]
public class MainFrameBarManager : BarManager, Syncfusion.Windows.Forms.IIgnoreWorkingArea, Syncfusion.Windows.Forms.IVisualStyle, IBarItemsRepository, Syncfusion.WinForms.Theme.IThemeProvider  
Remarks

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).

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

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         Syncfusion.Windows.Forms.Core.BaseComponent
            Syncfusion.Windows.Forms.Tools.XPMenus.BarManager
               Syncfusion.Windows.Forms.Tools.XPMenus.MainFrameBarManager

AssemblyVersion

Syncfusion.Tools.Windows: 18.2460.0.44

See Also