Skip to main content
Bar

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BarManager.CreateToolbar Event

Allows you to customize a bar when it is created.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Events")]
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.

#Remarks

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