In this topic, you will add tabs to the C1TabControl control in Design view, in XAML, and in code.
In Design View in Blend
Complete the following steps:
1. Click the C1TabControl control once to select it.
2. In the Toolbox, double-click the C1TabItem icon to add a tab item to the C1TabControl control.
A C1TabItem appears within the C1TabControl control.
In XAML
To add a tab to the C1TabControl control, place the following markup between the <c1:C1TabControl> and </c1:C1TabControl> tags:
<c1:C1TabItem Content="c1TabItem">
</c1ext:C1TabItem>
In Code
Complete the following steps:
1. Open the Window1.xaml.cs page.
2. Import the following namespace:
Imports C1.WPF
•C#
using C1.WPF;
3. Add the following code beneath the InitializeComponent() method:
'Create the tab and add content
Dim C1TabItem1 As New C1TabItem()
C1TabItem1.Content = "C1TabItem1"
'Add the tab to the control
c1TabControl1.Items.Add(C1TabItem1)
•C#
//Create the tab and add content
c1TabItem c1TabItem1 = new c1TabItem();
c1TabItem1.Content = "c1TabItem1";
//Add the tab to the control
c1TabControl1.Items.Add(c1TabItem1);
4. Run the program.