TabFormControlBase.ShowAddPageButton Property
Gets or sets the visibility of the Add (“+”) tab, which allows an end-user to add new tabs at runtime.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v19.1.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | **true** | true, if the built-in Add button is visible; otherwise, false. |
Remarks
The ShowAddPageButton property specifies whether the built-in Add button is visible. At run time, this button allows an end-user to add new tabs.
Set this property to false, to hide the button.
In code, you can add a new TabFormPage calling the TabFormControlBase.AddNewPage method. When a new page is created at runtime, the TabFormControlBase.PageCreated event fires. Handle this event to initialize the newly created page and its content (specify the tab header, add controls, etc.).
See Also