DxFormLayout.ChildContent Property
In This Article
Specifies the layout element collection.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
#Declaration
C#
[Parameter]
public RenderFragment ChildContent { get; set; }
#Property Value
Type | Description |
---|---|
Render |
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 more information: Dx
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