blazor-devexpress-dot-blazor-dot-dxformlayout-405c6f8a.md
Specifies the layout element collection.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[Parameter]
public RenderFragment ChildContent { get; set; }
| Type | Description |
|---|---|
| RenderFragment |
Layout elements.
|
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 additional 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