How to: Display Custom Button Within XtraTab Control

By default, only the Next and Prev buttons are displayed within the tab header panel. The following sample code demonstrates how to enable the DevExpress.XtraTab.TabButtons.Close option so that the Close button can be displayed within the tab header panel as well.

xtraTabControl1.HeaderButtons |= DevExpress.XtraTab.TabButtons.Close;