# Optional Tab Menu

## Content



The [C1TabControl](/componentone/api/wpf/online-tabcontrol5/dotnet-api/C1.WPF.TabControl/C1.WPF.TabControl.C1TabControl.html) control allows you to add a drop-down menu that allows users to select a tab and tab page from a menu. When enabled, this drop-down menu is accessible from the control's tabstrip. The drop-down menu appears as follows:

![](https://cdn.mescius.io/document-site-files/images/fd13627f-3e59-47ec-89e2-86c13c4f9d2c/images/tabcontrol/optmenu.png)

To activate the drop-down menu, simply set the C1TabControl.[TabStripMenuVisibility](/componentone/api/wpf/online-tabcontrol5/dotnet-api/C1.WPF.TabControl/C1.WPF.TabControl.C1TabControl.TabStripMenuVisibility.html) property to Visible:

### In XAML

To add a menu to the tabstrip, add **TabStripMenuVisibility="Visible"** to the **<c1:C1TabControl>** tag so that the markup resembles the following:

```xml
<c1:C1TabControl TabStripMenuVisibility="Visible"></c1:C1TabControl>
```

### In Code

Complete the following steps:

1.  Switch to Code view.
2.  Add the following code beneath the **InitializeComponent()** method:

```vbnet
C1TabControl1.TabStripMenuVisibility = Visible
```

```csharp
c1TabControl1.TabStripMenuVisibility = Visible;
```

3.  Run the program.

### At Design Time

Complete the following steps:

1.  Select the **C1TabControl** control.
2.  In the Properties window, click the **TabStripMenuVisibility** drop-down arrow and select **Visible** from the list.