PopupWindow.HeaderContentTemplate Property
Gets or sets a template used to display the content of the window’s header.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Default | Description |
---|---|---|
ITemplate | null | An object supporting the System.Web.UI.ITemplate interface which contains a template used to display the content of the window’s header. |
Remarks
Use the HeaderContentTemplate property to control the contents of the current popup 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).
Note that any style settings defined for the header via specific properties (such as the PopupWindow.HeaderStyle or ASPxPopupControl.HeaderStyle) are still in effect for the window’s header whose content is specified using the HeaderContentTemplate property.
Note
The value assigned to the HeaderContentTemplate property of a popup window overrides the value set for the popup control’s ASPxPopupControlBase.HeaderContentTemplate property (if any) which specifies a common header template for all popup windows from the ASPxPopupControl.Windows collection.
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.