Skip to main content

ASPxPopupControl.WindowHeaderContentTemplate Property

Gets or sets a common template used to display the header‘s content of all popup windows from the ASPxPopupControl.Windows collection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.2.dll

NuGet Package: DevExpress.Web


public ITemplate WindowHeaderContentTemplate { 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 WindowHeaderContentTemplate property to specify a common header template for all popup windows from the ASPxPopupControl.Windows collection. The template defined using this property replaces the content of a window’s header; in particular, the image and text displayed with the header (the close button element remains). To replace the full header area, use the ASPxPopupControl.WindowHeaderTemplate property. The WindowHeaderContentTemplate property’s value can be overridden by the PopupWindow.HeaderContentTemplate property of individual windows.

Note that any style settings defined for the header via specific properties (such as the ASPxPopupControl.HeaderStyle or PopupWindow.HeaderStyle) are still in effect for a window’s header whose content is specified through the WindowHeaderContentTemplate property.


If the ASPxPopupControl.Windows collection is empty, the WindowHeaderContentTemplate property is not in effect and the default popup window‘s header template can be defined by the ASPxPopupControlBase.HeaderTemplate property.


Once a template defined via the WindowHeaderContentTemplate property is created within a tab 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.

See Also