Skip to main content

ToolbarFormControl Class

Represents a title bar on a toolbar form.

Namespace: DevExpress.XtraBars.ToolbarForm

Assembly: DevExpress.XtraBars.v24.2.dll

Declaration

public class ToolbarFormControl :
    CustomLinksControl,
    ISupportInitialize,
    IAutoOpenMenuBar,
    ICustomBarControl,
    IToolbarManagerOwner,
    IXtraSerializable,
    IXtraSupportDeserializeCollection,
    IXtraSerializationIdProvider,
    IXtraCollectionDeserializationOptionsProvider,
    ISupportXtraSerializer,
    IXtraSerializableLayout,
    ITransparentBackgroundManagerEx

Remarks

Instead of a regular title bar, a ToolbarForm displays a title bar that contains bar items: menus, commands, etc. The ToolbarFormControl class represents a toolbar form’s title bar. The TitleItemLinks property provides access to bar items displayed in the title bar.

The ToolbarForm.ToolbarFormControl property provides access to a toolbar form’s title bar. A title bar is created automatically if you create a toolbar form in the designer. If you create a toolbar form in code, you should also create a title bar in code.

ToolbarForm myForm = new ToolbarForm();
ToolbarFormControl tfcHeader = new ToolbarFormControl() { ToolbarForm = myForm};
myForm.Controls.Add(tfcHeader);
myForm.ToolbarFormControl = tfcHeader;

MDI Applications

In an MDI application, when a child toolbar form is maximized, its bar items in the title bar are merged with the parent form’s bar items. Use the MdiMergeStyle property to specify whether bar items are merged when a child form is maximized, focused, or never merged.

The parent and child title bars fire the Merge and UnMerge events after the bar items are merged.

Inheritance

Object
MarshalByRefObject
Component
Control
DevExpress.XtraEditors.XtraControl
DevExpress.XtraBars.Controls.CustomControl
DevExpress.XtraBars.Controls.CustomLinksControl
ToolbarFormControl
See Also