Back to Devexpress

ASPxPopupControl.WindowContentTemplate Property

aspnet-devexpress-dot-web-dot-aspxpopupcontrol-27f408dd.md

latest4.0 KB
Original Source

ASPxPopupControl.WindowContentTemplate Property

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

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(null)]
public ITemplate WindowContentTemplate { get; set; }
vb
<DefaultValue(Nothing)>
Public Property WindowContentTemplate As ITemplate

Property Value

TypeDefaultDescription
ITemplatenull

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

|

Remarks

Use the WindowContentTemplate property to specify a common content region template for all popup windows from the ASPxPopupControl.Windows collection. 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. The template defined using this property replaces any other content of a window’s content region which can be specified by the ASPxPopupControlBase.Text (PopupWindow.Text) and ASPxPopupControlBase.Controls (ContentControlCollectionItem.Controls) properties. The WindowContentTemplate property’s value can be overridden by the PopupWindow.ContentTemplate property of individual windows.

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

Note

If the ASPxPopupControl.Windows collection is empty, the WindowContentTemplate property is not in effect and the contents of default popup window‘s content region template can be defined by the ASPxPopupControlBase.Controls property.

Note

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

ContentTemplate

WindowHeaderTemplate

WindowFooterTemplate

Controls

ASPxPopupControl Class

ASPxPopupControl Members

DevExpress.Web Namespace