XtraTabControl.CustomDrawHeaderButton Event
Allows you to custom paint header buttons (XtraTabControl.CustomHeaderButtons).
Namespace: DevExpress.XtraTab
Assembly: DevExpress.XtraEditors.v19.1.dll
Declaration
[DXCategory("Appearance")]
public event HeaderButtonCustomDrawEventHandler CustomDrawHeaderButton
Event Data
The CustomDrawHeaderButton event's data class is DevExpress.XtraTab.HeaderButtonCustomDrawEventArgs.
Remarks
The CustomDrawHeaderButton event allows you to custom paint header buttons (XtraTabControl.CustomHeaderButtons). The Button event parameter idenfies the currently processed button.
To draw custom information, use the methods provided by the Cache or Graphics event parameter.
When you handle the CustomDrawHeaderButton event, you can invoke the button’s default rendering with the DefaultDraw method.
Set the Handled event parameter to true to indicate that you have handled the CustomDrawHeaderButton event and no default painting is required after your event handler is completed. If the event’s Handled parameter is set to false (the default value), the default painting mechanism will automatically be invoked after your custom draw event handler is completed. The default painting mechanism overrides all rendering you may have performed previously.