Back to Devexpress

ToolbarFormControl Class

windowsforms-devexpress-dot-xtrabars-dot-toolbarform-11503628.md

latest4.8 KB
Original Source

ToolbarFormControl Class

Represents a title bar on a toolbar form.

Namespace : DevExpress.XtraBars.ToolbarForm

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public class ToolbarFormControl :
    CustomLinksControl,
    ISupportInitialize,
    IAutoOpenMenuBar,
    ICustomBarControl,
    IToolbarManagerOwner,
    IXtraSerializable,
    IXtraSupportDeserializeCollection,
    IXtraSerializationIdProvider,
    IXtraCollectionDeserializationOptionsProvider,
    ISupportXtraSerializer,
    ISupportJsonXtraSerializer,
    IXtraSerializableLayout,
    ITransparentBackgroundManagerEx
vb
Public Class ToolbarFormControl
    Inherits CustomLinksControl
    Implements ISupportInitialize,
               IAutoOpenMenuBar,
               ICustomBarControl,
               IToolbarManagerOwner,
               IXtraSerializable,
               IXtraSupportDeserializeCollection,
               IXtraSerializationIdProvider,
               IXtraCollectionDeserializationOptionsProvider,
               ISupportXtraSerializer,
               ISupportJsonXtraSerializer,
               IXtraSerializableLayout,
               ITransparentBackgroundManagerEx

The following members return ToolbarFormControl objects:

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.

csharp
ToolbarForm myForm = new ToolbarForm();
ToolbarFormControl tfcHeader = new ToolbarFormControl() { ToolbarForm = myForm};
myForm.Controls.Add(tfcHeader);
myForm.ToolbarFormControl = tfcHeader;
vb
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 FluentDesignFormControl

See Also

ToolbarFormControl Members

DevExpress.XtraBars.ToolbarForm Namespace