Basic Library for WPF and Silverlight | ComponentOne
WPF and Silverlight Edition Basic Library / TabControl / TabControl Features / Optional Tab Menu
In This Topic
    Optional Tab Menu
    In This Topic

    The C1TabControl 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:

    To activate the drop-down menu, simply set the C1TabControl.TabStripMenuVisibility property to Visible:

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

    XAML
    Copy Code
    <c1:C1TabControl TabStripMenuVisibility="Visible"></c1:C1TabControl>
    

    Complete the following steps:

    1. Switch to Code view.
    2. Add the following code beneath the InitializeComponent() method:
    Visual Basic
    Copy Code
    C1TabControl1.TabStripMenuVisibility = Visible
    

     

    C#
    Copy Code
    c1TabControl1.TabStripMenuVisibility = Visible;
    
    1. Run the program.

    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.