PopupWindow.ContentTemplate Property
Gets or sets a template used for displaying the content of the current window’s content region.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
ITemplate | null | An object supporting the System.Web.UI.ITemplate interface, which contains the template used for displaying the window’s content region. |
Remarks
Use the ContentTemplate property to define the content for the content region of the current popup window. A window’s content region is considered the area where the controls representing the window’s contents are displayed - it doesn’t involve the window’s header and footer.
Placing a control into a container for a template of the ContentTemplate type causes the control to be displayed within the window’s content region, replacing any other content specified by the PopupWindow.Text and ContentControlCollectionItem.Controls properties.
Note that any style settings defined for the window’s content region via specific properties (such as the PopupWindow.ContentStyle or ASPxPopupControl.ContentStyle) are still in effect for the window whose content is specified using the ContentTemplate property.
Note
Once a template defined via the ContentTemplate property is created within a control, it is instantiated within a container object of the PopupControlTemplateContainer type. This container object exposes a set of specific properties to which the template’s child controls can be bound.