Articles in this section
Category / Section

How to change TabScrollStyle of TabcontrolExt?

1 min read

Scrolling style of TabControlExt can be changed by TabScrollStyle property of TabControlExt. TabScrollStyles are Extended, Normal.

 

The same has been explained in the following code snippet:

XAML:

//Code Explains How to change tabitem navigation in 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="TabcontrolTxt1.MainWindow"
Title="MainWindow" Height="350" Width="525">
<Grid>
<syncfusion:TabControlExt Name="Tabcontrol" TabScrollStyle="Normal">
<syncfusion:TabItemExt Header="Tab1" Width="150"></syncfusion:TabItemExt>
<syncfusion:TabItemExt Header="Tab2" Width="150"></syncfusion:TabItemExt>
<syncfusion:TabItemExt Header="Tab3" Width="150"></syncfusion:TabItemExt>
<syncfusion:TabItemExt Header="Tab3" Width="150"></syncfusion:TabItemExt>
</syncfusion:TabControlExt>
</Grid>
</Window>

C#:

//Code Explains How to change tabitem navigation in TabcontrolExt
namespace TabcontrolTxt1
{
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
Tabcontrol.TabScrollStyle = Syncfusion.Windows.Tools.Controls.TabScrollStyle.Extended;
}
}
}

Output:

   Normal:

      It Provides Next, Previous navigation options

                  C:\Users\Ashok.Murugesan\Desktop\Switchmode\Tabcontrol-Normal.png

Extended:

      It Provides Next, Previous, Last, First navigation options

                  C:\Users\Ashok.Murugesan\Desktop\Switchmode\Tabcontrol-extented.png

 

 

 

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