Skip to main content
Tab

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.v22.1.dll

Declaration

[DefaultValue(null)]
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.

Remarks

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.

Note

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.

Note

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