What Changed
We marked the Content property as obsolete.
Reasons for Change
In v21.1, we extended the Popup API to give you more flexible customization options. The Content
property duplicates the functionality of newly introduced properties, and its name is inconsistent with other customization API's.
The Popup now includes the following properties:
- HeaderText, BodyText, FooterText - Specify text displayed in Popup elements (header, body, and footer). All predefined appearances apply.
- HeaderContentTemplate, BodyContentTemplate, FooterContentTemplate - Allow you to customize the content area of Popup elements (header, body, or footer). Predefined content alignment and paddings apply.
- HeaderTemplate, BodyTemplate, FooterTemplate - Allow you to customize the entire area of Popup elements (header, body, or footer).
Impact on Existing Apps
This change affects applications if the Content
property is specified.
Razor<DxPopup ...>
<Content>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</Content>
</DxPopup>
How to Update Existing Apps
If you specify plain text, you can use the BodyText
property instead.
Razor<DxPopup ...
BodyText=@("Lorem ipsum dolor sit amet, consectetur adipiscing elit.")>
@*...*@
</DxPopup>
If you specify formatted text or custom content, replace Content
with BodyContentTemplate
.
Razor<DxPopup ...>
<BodyContentTemplate>
<h1>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</h1>
</BodyContentTemplate>
</DxPopup>