Back to Devexpress

DxSplitterPane.ChildContent Property

blazor-devexpress-dot-blazor-dot-dxsplitterpane-0422c05a.md

latest1.7 KB
Original Source

DxSplitterPane.ChildContent Property

Specifies the Splitter pane content.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDescription
RenderFragment

Pane content.

|

Remarks

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

razor
<DxSplitter CssClass="border" Height="200px" Width="950px">
    <Panes>
        <DxSplitterPane>
            <ChildContent>
                Pane 1
            </ChildContent>
        </DxSplitterPane>
        @* ... *@
    </Panes>
</DxSplitter>

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 layout elements directly in the <DxSplitterPane> tag:

razor
<DxSplitter CssClass="border" Height="200px" Width="950px">
    <Panes>
        <DxSplitterPane>
            Pane 1
        </DxSplitterPane>
        @* ... *@
    </Panes>
</DxSplitter>

See Also

DxSplitterPane Class

DxSplitterPane Members

DevExpress.Blazor Namespace