Skip to main content

BuilderFactoryExtensions.BootstrapPageControl(BuilderFactory, String) Method

Creates a Page Control layout with a specified name.

Namespace: DevExpress.AspNetCore

Assembly: DevExpress.AspNetCore.Bootstrap.v18.2.dll

Declaration

public static BootstrapPageControlBuilder BootstrapPageControl(
    this BuilderFactory builderFactory,
    string name
)

Parameters

Name Type Description
builderFactory BuilderFactory

A BuilderFactory object providing access to Page Control settings.

name String

A layout name.

Returns

Type Description
BootstrapPageControlBuilder

A builder for a Page Control layout.

Remarks

IMPORTANT

Bootstrap Controls for ASP.NET Core are in maintenance mode. We don’t add new controls or develop new functionality for this product line. Our recommendation is to use the ASP.NET Core Controls suite.

The code sample below demonstrates how you can use this method to create a Page Control layout.

@(Html.DevExpress()
    .BootstrapPageControl("pageControlDefault")
    .TabPages(pages => {
        pages.Add()
            .Text("Home")
            .Content(@<text>

            </text>);
        pages.Add()
            .Text("Products")
            .Content(@<text>

            </text>);
        pages.Add()
            .Text("Support")
            .Content(@<text>

            </text>);
    }))
See Also