In this topic, you will add a header to a tab by setting the Header property Blend, in XAML, and in code. This topic assumes that you have added at least one C1TabItem to the C1TabControl control.
In XAML
To add a header to a tab, add Header="Hello
World"
to the <c1:C1TabItem>
tag so that the markup
resembles the following:
<c1:C1TabItem Header="Hello World"></c1:C1TabControl>
In Code
Complete the following steps:
1. Open the Window1.xaml.cs page.
2. Add the following code beneath the InitializeComponent() method:
C1TabItem1.Header = Hello World
•C#
c1TabItem1.Header = Hello World;
3. Run the program.
This Topic Illustrates the Following:
The image below depicts a C1TabItem with a header.