Adding a Menu to the Tabstrip

You can add a menu to the tabstrip so that users can open and close tabs from a context menu instead of by clicking on tabs. To add the tab menu, set the C1TabControl control's TabStripMenuVisibility property to Visible.

In Design View

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.

In XAML

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

 

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

In Code

Complete the following steps:

1.   Open the Window1.xaml.cs page.

2.   Add the following code beneath the InitializeComponent() method:

      Visual Basic

      C#

3.   Run the program.

 This Topic Illustrates the Following:

The image below depicts a C1TabControl control tabstrip with tab menu.

 


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.