Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxTabBase.ChildContent Property

Specifies tab content.

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public RenderFragment ChildContent { get; set; }

#Property Value

Type Description
RenderFragment

Content markup.

#Remarks

The ChildContent component parameter can store custom component content that does not belong to other component’s RenderFragment properties as shown below:

Razor
<DxTabs>
    <DxTabPage Text="Tab">
        <ChildContent>This is child content</ChildContent>
    </DxTabPage>
</DxTabs>

Tab with child content

Note

Since ChildContent contains nested markup of its parent class, the template content must conform to HTML semantics.

You can omit the <ChildContent> tag and specify the markup directly in the <DxTabPage> tag:

Razor
<DxTabs>
    <DxTabPage Text="Tab">
        This is child content
    </DxTabPage>
</DxTabs>

In the DxTab component, <ChildContent> is equivalent to the TabTemplate property.

See Also