Skip to main content

ASPxPopupControlBase.HeaderContentTemplate Property

Gets or sets a template used to display the content of the default window‘s header.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.1.dll

NuGet Package: DevExpress.Web


public virtual ITemplate HeaderContentTemplate { get; set; }

Property Value

Type Default Description
ITemplate null

An object that supports the System.Web.UI.ITemplate interface and contains a template used to display the content of a window’s header.


Use the HeaderContentTemplate property to control the content of the window’s header. The template defined using this property replaces the content of the window header - in particular, the image and text displayed with the header ( the close button element remains). To replace the full header area, use the ASPxPopupControlBase.HeaderTemplate property.

Note that any style settings defined for the header via the ASPxPopupControl.HeaderStyle (PopupControlStyles.Header for ASPxDockPanel) property are still in effect for the window’s header, whose content is specified using the HeaderContentTemplate property.


Once a template defined via the HeaderContentTemplate 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.


For ASPxPopupControl only:

If the ASPxPopupControl.Windows collection is not empty, the HeaderContentTemplate property is not in effect. In this case, a common header template for all popup windows from the ASPxPopupControl.Windows collection can be defined via the ASPxPopupControl.WindowHeaderContentTemplate property. An individual window’s header template can be specified by using the window’s PopupWindow.HeaderContentTemplate property.

See Also