Back to Devexpress

DxTabBase.ChildContent Property

blazor-devexpress-dot-blazor-dot-base-dot-dxtabbase-d0a9957e.md

latest1.7 KB
Original Source

DxTabBase.ChildContent Property

Specifies tab content.

Namespace : DevExpress.Blazor.Base

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public RenderFragment ChildContent { get; set; }

Property Value

TypeDescription
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>

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

DxTabBase Class

DxTabBase Members

DevExpress.Blazor.Base Namespace