DxFormLayout.ChildContent Property
Specifies the layout element collection.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v26.1.dll
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
| Type | Description |
|---|---|
| RenderFragment | Layout elements. |
Remarks
A Form Layout can contain items, groups, and tabs. Refer to the following topic for additional information: Form Layout Structure.
You can define layout elements between <DxFormLayout>...</DxFormLayout> tags.
<DxFormLayout>
<DxFormLayoutItem Caption="Name" ColSpanXl="4" ColSpanMd="6">
<DxTextBox />
</DxFormLayoutItem>
</DxFormLayout>
You can also place layout elements between <ChildContent>...</ChildContent> tags.
<DxFormLayout>
<ChildContent>
<DxFormLayoutItem Caption="Name" ColSpanXl="4" ColSpanMd="6">
<DxTextBox />
</DxFormLayoutItem>
</ChildContent>
</DxFormLayout>
Note that <ChildContent>...</ChildContent> tags are required for layout elements when you add extensions to the Form Layout markup.
<DxFormLayout>
<ChildContent>
<DxFormLayoutItem Caption="Name" ColSpanXl="4" ColSpanMd="6">
<DxTextBox />
</DxFormLayoutItem>
</ChildContent>
<Extensions>
<DxFormLayoutSmartPaste />
</Extensions>
</DxFormLayout>
See Also