Skip to main content

BarManager.CreateToolbar Event

Allows you to customize a bar when it is created.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v22.2.dll

NuGet Package: DevExpress.Win.Navigation


public event CreateToolbarEventHandler CreateToolbar

Event Data

The CreateToolbar event's data class is CreateToolbarEventArgs. The following properties provide information specific to this event:

Property Description
Bar Gets the Bar which has just been created.


The CreateToolbar event allows you to customize a bar right after it has been created. For instance, you could make all new bars dock to the left edge of a container (form), etc.

The bar being created is passed as the event’s CreateToolbarEventArgs.Bar parameter.

See Also