Changing the Shape of Tabs

The tabs of a C1TabControl control can be rectangular, rounded, or sloped. By default, the tabs are rounded, but you can change the shape of the tabs by setting the C1TabControl control's TabItemShape property. In this topic, you will change the shape of the tabs to Sloped in Design view, in XAML, and in code. For more information on tabstrip shaping settings, see Tab Shaping.

In Design View

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.

In XAML

To change the shape of the tabs, add TabItemShape="Sloped" to the <c1:C1TabControl> tag so that the markup resembles the following:

 

<c1:C1TabControl TabItemShape="Sloped"></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 with sloped tabs.

 


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