Skip to main content

BootstrapPageControl.TabPages Property

Provides access to the collection of tabbed pages within the PageControl.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v24.2.dll

Declaration

[PersistenceMode(PersistenceMode.InnerProperty)]
public BootstrapTabPageCollection TabPages { get; }

Property Value

Type Description
BootstrapTabPageCollection

A BootstrapTabPageCollection object representing the collection of tabbed pages.

Remarks

The TabPages property provides access to a collection that contains all tabbed pages of the current page control. This collection provides standard means to manipulate (add or remove) page objects within the page control. A particular tabbed page can be accessed using index notation.

Example

This example demonstrates the basic functionality of the Page Control.

  • Initialize a new instance of the BootstrapPageControl class.
  • Add required BootstrapTabPage objects to the BootstrapPageControl.TabPages collection.
  • Fill each tab page with the necessary content controls - ContentCollection items.

The image below shows the result:

BootstrapPageTabControl_Overview

<dx:BootstrapPageControl runat="server">
    <TabPages>
        <dx:BootstrapTabPage Text="Home">
            <ContentCollection>
                <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                    ...
                </dx:ContentControl>
            </ContentCollection>
        </dx:BootstrapTabPage>
        <dx:BootstrapTabPage Text="Products">
            <ContentCollection>
                <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                    ...
                </dx:ContentControl>
            </ContentCollection>
        </dx:BootstrapTabPage>
        <dx:BootstrapTabPage Text="Support">
            <ContentCollection>
                <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                    ...
                </dx:ContentControl>
            </ContentCollection>
        </dx:BootstrapTabPage>
    </TabPages>
</dx:BootstrapPageControl>
See Also