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:

ExcelBlack:

ExcelSilver:

None:
