Category / Section
How to display the Tab Menu items in SfTabControl ?
1 min read
In SfTabControl, you can display a list of TabItems under TabStripMenuButton. You can change the visibility of TabStripMenuButton by using the ShowTabstripMenu property of SfTabControl. By default, the value of ShowTabstripMenu is False.
XAML
<Navigation:SfTabControl x:Name="tabcontrol" HorizontalAlignment="Center" ShowTabstripMenu="True" VerticalAlignment="Center" Width="800" Height="600" Background="WhiteSmoke" > <Navigation:SfTabItem Header="Tab 1"/> <Navigation:SfTabItem Header="Tab 2"/> <Navigation:SfTabItem Header="Tab 3"/> </Navigation:SfTabControl>
C#
tabcontrol.ShowTabstripMenu = true;
The following screenshot displays the output of TabStripMenuButton hidden by setting ShowTabstripMenu as False in SfTabControl.
The following screenshot displays the TabList under TabStripMenuButton by setting ShowTabstripMenu as True in SfTabControl.