Back to Devexpress

ASPxTabControl.TabTemplate Property

aspnet-devexpress-dot-web-dot-aspxtabcontrol-76e6635c.md

latest2.4 KB
Original Source

ASPxTabControl.TabTemplate Property

Gets or sets a common template used for displaying the content of all tabs within the current tab control.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

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

Property Value

TypeDefaultDescription
ITemplatenull

An object supporting the System.Web.UI.ITemplate interface which contains the template.

|

Remarks

Use the TabTemplate property to define the common content for all tabs within the current tab control. The template created using this property replaces the content of each tab within the control - in particular, the image and text associated with the tab.

Note that any style settings defined for tabs via specific properties (such as the ASPxTabControlBase.TabStyle or TabBase.TabStyle) are still in effect for the tab whose contents are specified through the TabTemplate property.

To define the content of a particular tab use the tab’s Tab.TabTemplate property.

Note

Once a template defined via the TabTemplate property is created within a tab control, it is instantiated within a container object of the TabControlTemplateContainer type. This container object exposes a set of specific properties to which the template’s child controls can be bound.

See Also

TabTemplate

ActiveTabTemplate

Page Control and Tab Control

ASPxTabControl Class

ASPxTabControl Members

DevExpress.Web Namespace