DxTabBase.ChildContent Property
Specifies tab content.
Namespace: DevExpress.Blazor.Base
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[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:
<DxTabs>
<DxTabPage Text="Tab">
<ChildContent>This is child content</ChildContent>
</DxTabPage>
</DxTabs>
You can omit the <ChildContent>
tag and specify the markup directly in the <DxTabPage>
tag:
<DxTabs>
<DxTabPage Text="Tab">
This is child content
</DxTabPage>
</DxTabs>
In the DxTab component, <ChildContent>
is equivalent to the TabTemplate property.
See Also