Skip to main content

DXTabItem Class

Represents a single tab item.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v14.2.dll

#Declaration

[TemplateVisualState(Name = "Unselected", GroupName = "SelectionStates")]
[TemplateVisualState(Name = "Selected", GroupName = "SelectionStates")]
[TemplateVisualState(Name = "Focused", GroupName = "FocusStates")]
[TemplateVisualState(Name = "Unfocused", GroupName = "FocusStates")]
[TemplatePart(Name = "closeButton", Type = typeof(Button))]
[TemplateVisualState(Name = "LocationTopHorizontal", GroupName = "LocationStates")]
[TemplateVisualState(Name = "LocationLeftVertical", GroupName = "LocationStates")]
[TemplatePart(Name = "headerContainer", Type = typeof(Grid))]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
[TemplateVisualState(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "LocationRightHorizontal", GroupName = "LocationStates")]
[TemplatePart(Name = "headerContainerPresenter", Type = typeof(HeaderContainerPresenter))]
[TemplateVisualState(Name = "LocationBottomHorizontal", GroupName = "LocationStates")]
[TemplateVisualState(Name = "LocationTopVertical", GroupName = "LocationStates")]
[TemplateVisualState(Name = "LocationLeftHorizontal", GroupName = "LocationStates")]
[TemplateVisualState(Name = "LocationRightVertical", GroupName = "LocationStates")]
[TemplateVisualState(Name = "LocationBottomVertical", GroupName = "LocationStates")]
[TemplateVisualState(Name = "ViewModeState", GroupName = "NormalViewMode")]
[TemplateVisualState(Name = "ViewModeState", GroupName = "HoldViewMode")]
[TemplatePart(Name = "headerIconPresenter", Type = typeof(HeaderIconPresenter))]
public class DXTabItem :
    ContentControl,
    IItemHeaderMenu

#Returned By

Properties and methods that return DXTabItem instances:

#Remarks

The DXTabControl contains a collection of tab pages, represented by the DXTabItem objects (tab items). This collection is zero-based indexed and can be accessed using the DXTabControl.Items property.

TabControl_TabItem

A tab item consists of a header and content. Tab items' headers are displayed in the Header Panel. An end-user can select an item by clicking its header. A tab item's header can optionally contain an icon and a close button, used to hide the item's header from the Header Panel. An image to be used as an icon is specified by the DXTabItem.Icon property. The close button's visibility is specified by the DXTabItem.AllowHide property.

The DXTabControl contains a popup menu (header menu), whose items correspond to tab items in the DXTabControl. Clicking a menu item automatically selects the corresponding tab item. Content of the menu item is specified by the corresponding tab item's DXTabItem.HeaderMenuContent property. To specify whether a tab item is included into the header menu, use the DXTabItem.VisibleInHeaderMenu property.

To learn more about tab item features, see DXTabControl Overview.

See Also