DxPopupBase.ChildContent Property
Specifies body content.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
#Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
#Property Value
Type | Description |
---|---|
Render |
The body’s content. |
#Remarks
The ChildContent
component parameter can store custom component content that does not belong to other component’s RenderFragment
properties as shown below:
<DxPopup HeaderText="Header">
<ChildContent>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris sit amet metus vel nisi blandit
tincidunt vel efficitur purus. Nunc nec turpis tempus, accumsan orci auctor, imperdiet mauris.
Fusce id purus magna.
</ChildContent>
</DxPopup>
Note
Since Child
contains nested markup of its parent class, the template content must conform to HTML semantics.
This property is equivalent to the BodyContentTemplate property. You can omit both these properties as Blazor will generate them automatically. However, we recommend that you explicitly specify BodyContentTemplate in the markup. This notation allows you to specify the following templates on the component level: