Skip to main content

DXTabControl Class

Represents the DXTabControl.

Namespace: DevExpress.Xpf.Core

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

#Declaration

[DXToolboxBrowsable(DXToolboxItemKind.Free)]
[TemplatePart(Name = "NextButton", Type = typeof(Button))]
[ToolboxTabName("DX.14.2: Navigation & Layout")]
[TemplatePart(Name = "HeaderMenu", Type = typeof(HeaderMenu))]
[TemplatePart(Name = "panelContainer", Type = typeof(TabPanelContainer))]
[TemplatePart(Name = "PrevButton", Type = typeof(Button))]
[TemplatePart(Name = "ScrollStoryboard", Type = typeof(Storyboard))]
[TemplatePart(Name = "ItemsPanelTranslate", Type = typeof(TranslateTransform))]
[TemplatePart(Name = "fastRenderPanel", Type = typeof(TabControlFastRenderPanel))]
[TemplatePart(Name = "tabHeadersPanel", Type = typeof(Panel))]
public class DXTabControl :
    ItemsControl,
    ITabControl,
    IHeaderMenu,
    IHeaderPanel,
    IScrollPanel

#Remarks

The DXTabControl enables you to provide the tab-based navigation functionality for your web applications, powered by Silverlight.

TabControl

The DXTabControl contains a collection of tab items, represented by the DXTabItem objects. This collection is zero-based indexed and can be accessed using the Items property. The Items collection generally contains arbitrary objects. In this instance, the actual tab items are obtained by applying the ItemTemplate template to the corresponding collection element. The tab items are visually identified by their headers displayed within the Header Panel. The Header Panel can be located at the top (by default), at the bottom, on the left side or the right side of the tab item. Clicking a tab header selects the corresponding tab item.

The DXTabControl allows individual tab items to be hidden. A hidden tab item is not disposed and can be shown later. The DXTabControl provides a popup menu (header menu), which is invoked when clicking an arrow displayed in the corner of the DXTabControl. The header menu's items correspond to tab items in the DXTabControl. Clicking a menu item automatically selects the corresponding tab item. The header menu can optionally include items which correspond to hidden tab items. Clicking these menu items, shows the corresponding tab items within the DXTabControl. To learn more, see Showing and Hiding Tab Items.

The DXTabControl's layout, style and behavior settings are defined by view objects. Views are represented by the TabControlViewBase descendant classes. To apply a view to the DXTabControl, create a view object and assign it to the DXTabControl.View property.

The available views are listed below:

  • Multiline view

    TabControl_MultiLineView

  • Scroll view

    TabControl_ScrollView

To learn more, see DXTabControl Overview.

See Also