TabPage.TabTemplate Property
Gets or sets a template used to display the content of the current page’s tab.
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 the template. |
Remarks
Use the TabTemplate property to define the page’s content for the current tab. The template created using this property replaces the content of an individual tab - in particular, the image and text associated with the tab.
Note that any style settings defined for the tab via specific properties (such as the ASPxTabControlBase.ActiveTabStyle or TabBase.ActiveTabStyle) are still in effect for the tab whose contents are specified using the TabTemplate property.
To define the common content for all tabs in a page control, use the control’s ASPxPageControl.TabTemplate property.
Note
Once a template defined via the TabTemplate property is created within a page control, it is instantiated within a container object of the PageControlTemplateContainer type. This container object exposes a set of specific properties to which the template’s child controls can be bound.