Articles in this section
Category / Section

How to display TabItemExt like Excel sheet tabs inTabcontrolExt

TabItemExt in TabControlExt can be displayed like Excel sheet tabs by TabVisualStyle Property.

TabVisualStyle can be changed as ExcelBlue, ExcelBlack,ExcelSilver and None

//Code Explains How to set the TabVisualStyle for TabcontrolExt
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"        xmlns:syncfusion="http://schemas.syncfusion.com/wpf" x:Class="TabControlExt1.MainWindow"
Title="MainWindow" Height="350" Width="525">
<Grid>
<syncfusion:TabControlExt x:Name="tabcontrol" TabVisualStyle="ExcelBlue">
<syncfusion:TabItemExt Header="tab1"></syncfusion:TabItemExt>
<syncfusion:TabItemExt Header="tab2"></syncfusion:TabItemExt>
<syncfusion:TabItemExt Header="tab3"></syncfusion:TabItemExt>
<syncfusion:TabItemExt Header="tab3"></syncfusion:TabItemExt>
</syncfusion:TabControlExt>
</Grid>
</Window

The same has been explained in the following code snippet:

XAML:

 

C#:

 

// Code Explains How to set the TabVisualStyle for TabcontrolExt
namespace TabControlExt1
{
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
tabcontrol.TabVisualStyle =TabVisualStyle.ExcelBlack;
}
}
}

 

Output:

ExcelBlue:

C:\Users\Ashok.Murugesan\Desktop\KBTask\13.4SprintKBTools\ScreenShot\TabVisualStyle-Blue.png

ExcelBlack:

C:\Users\Ashok.Murugesan\Desktop\KBTask\13.4SprintKBTools\ScreenShot\TabVisualStyle-Black.png

ExcelSilver:

C:\Users\Ashok.Murugesan\Desktop\KBTask\13.4SprintKBTools\ScreenShot\TabVisualStyle-Silver.png

None:

C:\Users\Ashok.Murugesan\Desktop\KBTask\13.4SprintKBTools\ScreenShot\TabVisualStyle-none.png

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied