Skip to main content
All docs
V25.1
  • DxFormLayout.ChildContent Property

    Specifies the layout element collection.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

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

    Property Value

    Type Description
    RenderFragment

    Layout elements.

    Remarks

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

    <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 more information: DxFormLayout - Layout Structure.

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

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