[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Collapse]Layout Management
   [Expand]Dock Windows
   [Expand]Tile and Layout
   [Collapse]Tab Control
    [Expand]Product Information
    [Expand]Fundamentals
    [Collapse]Concepts
      Binding to Data Overview
      Selecting Tab Items
      Showing and Hiding Tab Items
      Adding and Removing Tab Items
      Header Menu
      Appearance Customization
    [Expand]Examples
   [Expand]Carousel
    Book Control
    Workspace Manager
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Showing and Hiding Tab Items

Expanded Hiding Tab Items

The DXTabControl allows individual tab items to be hidden. A hidden tab item is not disposed, and can be shown later. To hide a tab item in code, use the DXTabControl.HideTabItem method. An end-user can hide a tab item by clicking the Hide button displayed within the tab item's header, Header Area or\and Tab Panel:

The visibility of the Hide button is specified by the tab control view's TabControlViewBase.HideButtonShowMode property, or individually for each tab item using the DXTabItem.AllowHide property.

Before a tab item is hidden, the DXTabControl.TabHiding event is fired, allowing you to cancel the action. To do this, set the event parameter's e.Cancel property to true. The index of the tab item that is being hidden can be obtained by the event parameter's e.TabIndex property. After the tab item has been hidden, the DXTabControl.TabHidden event is fired.

Expanded Showing Tab Items

The hidden tab items can be shown in code using the DXTabControl.ShowTabItem method. An end-user can do this using the Header Menu, which is invoked when clicking an arrow displayed in the corner of the DXTabControl. Clicking menu items shows the corresponding tab items within the DXTabControl.

Before a tab item is shown, the DXTabControl.TabShowing event is fired, allowing you to cancel the action. To do this, set the event parameter's e.Cancel property to true. The index of the tab item that is being shown can be obtained by the event parameter's e.TabIndex property. After the tab item has been shown, the DXTabControl.TabShown event is fired.

Is this topic helpful?​​​​​​​