The content that should be displayed in the tab item header area to the right/bottom of the tab items.
The following shows how to add content before and after the tab item area.
Class Window1
Public Sub New()
' This call is required by the Windows Form Designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
' Set the content of the pre-tab item area.
Me.XamTabControl1.PreTabItemContent = "Pre tab area content"
' Set the DataTemplate for the pre-tab item area.
Me.XamTabControl1.PreTabItemContentTemplate = TryCast(Me.TryFindResource("PreTabItemTemplate"), DataTemplate)
' Set the content of the post-tab item area.
Me.XamTabControl1.PostTabItemContent = "Post tab area content"
' Set the DataTemplate for the post-tab item area.
Me.XamTabControl1.PostTabItemContentTemplate = TryCast(Me.TryFindResource("PostTabItemTemplate"), DataTemplate)
End Sub
'Declaration
Public Property PostTabItemContent As Object
public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();
// Set the content of the pre-tab item area.
this.xamTabControl1.PreTabItemContent = "Pre tab area content";
// Set the DataTemplate for the pre-tab item area.
this.xamTabControl1.PreTabItemContentTemplate = this.TryFindResource("PreTabItemTemplate") as DataTemplate;
// Set the content of the post-tab item area.
this.xamTabControl1.PostTabItemContent = "Post tab area content";
// Set the DataTemplate for the post-tab item area.
this.xamTabControl1.PostTabItemContentTemplate = this.TryFindResource("PostTabItemTemplate") as DataTemplate;
}
'Declaration
Public Property PostTabItemContent As Object
<Window x:Class="XamTabControl_cs.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="647"
xmlns:igThemes="http://infragistics.com/Themes"
xmlns:igWindows="http://infragistics.com/Windows">
<Window.Resources>
<DataTemplate x:Key="PreTabItemTemplate">
<Border Padding="2,2,20,2">
<ContentControl Content="{Binding}"/>
</Border>
</DataTemplate>
<DataTemplate x:Key="PostTabItemTemplate">
<Border Padding="20,2,2,2">
<ContentControl Content="{Binding}"/>
</Border>
</DataTemplate>
</Window.Resources>
<Grid >
<igWindows:XamTabControl Name="xamTabControl1"
PreTabItemContentTemplate="{StaticResource PreTabItemTemplate}"
PostTabItemContentTemplate="{StaticResource PostTabItemTemplate}" >
<igWindows:XamTabControl.PreTabItemContent>
<Button>Pre-tab area button</Button>
</igWindows:XamTabControl.PreTabItemContent>
<igWindows:XamTabControl.PostTabItemContent>
<Label>Post-tab area label</Label>
</igWindows:XamTabControl.PostTabItemContent>
<igWindows:TabItemEx Header="tabItemEx1" Name="tabItemEx1">
<Grid /> <!-- tab item content goes here -->
</igWindows:TabItemEx>
</igWindows:XamTabControl>
</Grid>
</Window>
'Declaration
Public Property PostTabItemContent As Object
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2