Articles in this section
Category / Section

How to navigate the TabNavigationItem through TabStrips in the WPF TabNavigation control?

1 min read

To navigate the TabNavigationItem using the TabStrips, the TabStrips should be visible. To show the TabStrip in the TabNavigationControl, the TabStripVisibility property can be set as Visible. The same has been demonstrated in the following code example:

XAML:

<Window x:Class="WPfapplication.MainWindow"
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"
Title="MainWindow" Height="350" Width="525">
<Grid x:Name="Grid1">
<syncfusion:TabNavigationControl x:Name="_Tabnavigationcontrol" TabStripVisibility="Visible">
<syncfusion:TabNavigationItem Header="_TabNavigationItem1"/>
<syncfusion:TabNavigationItem Header="_TabNavigationItem2"/>
<syncfusion:TabNavigationItem Header="_TabNavigationItem3"/>
<syncfusion:TabNavigationItem Header="_TabNavigationItem4"/>
<syncfusion:TabNavigationItem Header="_TabNavigationItem5"/>
</syncfusion:TabNavigationControl>
</Grid>
</Window>

 

C#:

using Syncfusion.Windows.Tools.Controls;
using Syncfusion.Windows.Shared;
namespace WPfapplication
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
TabNavigationControl _Tabnavigationcontrol = new TabNavigationControl();
_Tabnavigationcontrol.TabStripVisibility = Visibility.Visible;
TabNavigationItem _item1 = new TabNavigationItem();
_item1.Header = "_TabNavigationItem1";
TabNavigationItem _item2 = new TabNavigationItem();
_item2.Header = "_TabNavigationItem2";
TabNavigationItem _item3 = new TabNavigationItem();
_item3.Header = "_TabNavigationItem3";
TabNavigationItem _item4 = new TabNavigationItem();
_item4.Header = "_TabNavigationItem4";
TabNavigationItem _item5 = new TabNavigationItem();
_item5.Header = "_TabNavigationItem5";
_Tabnavigationcontrol.Items.Add(_item1);
_Tabnavigationcontrol.Items.Add(_item2);
_Tabnavigationcontrol.Items.Add(_item3);
_Tabnavigationcontrol.Items.Add(_item4);
_Tabnavigationcontrol.Items.Add(_item5);
Grid1.Children.Add(_Tabnavigationcontrol);
}
}
}
 

 

Output:

 

       

Conclusion

I hope you enjoyed learning about how to navigate the TabNavigationItem through TabStrips in the WPF TabNavigation control.

You can refer to our  WPF TabNavigation control feature tour page to know about its other groundbreaking feature representations. You can also explore our WPF TabNavigation control documentation to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

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