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

    Tabs can appear rounded, sloped, or rectangular. By default, the tab will appear rounded, but you can change the shape of the tabs to any of the three settings by setting the C1TabControl.TabItemShape property to Rectangle, Rounded, or Sloped.

    Rectangle

    Rounded

    Sloped

    To change the tab shape, use one of the following methods:

    Add TabItemShape="Sloped" to the <c1:C1TabControl> tag so that the markup resembles the following:

    XAML
    Copy Code
    <c1:C1TabControl TabItemShape="Sloped"></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.TabItemShape = Sloped
    

     

    C#
    Copy Code
    c1TabControl1.TabItemShape = Sloped;
    
    1. Run the program.

    Complete the following steps:

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

     The image below depicts a C1TabControl control with sloped tabs.