Back to Devexpress

DxFormLayout.ChildContent Property

blazor-devexpress-dot-blazor-dot-dxformlayout-405c6f8a.md

latest1.7 KB
Original Source

DxFormLayout.ChildContent Property

Specifies the layout element collection.

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

Layout elements.

|

Remarks

A Form Layout can contain items, groups, and tabs within the ChildConent tag, for example:

razor
<DxFormLayout>
    <ChildContent>
        <DxFormLayoutItem Caption="Name" ColSpanXl="4" ColSpanMd="6">
            <DxTextBox />
        </DxFormLayoutItem>
    </ChildContent>
</DxFormLayout>

Note

Nested layout elements must conform to the component layout structure. Refer to the following topic for additional information: DxFormLayout - Layout Structure.

You can omit the <ChildContent> tag and specify layout elements directly in the <DxFormLayout> tag:

razor
<DxFormLayout>
    <DxFormLayoutItem Caption="Name" ColSpanXl="4" ColSpanMd="6">
        <DxTextBox />
    </DxFormLayoutItem>
</DxFormLayout>

See Also

DxFormLayout Class

DxFormLayout Members

DevExpress.Blazor Namespace