バージョン

PostTabItemContent プロパティ

タブ項目の右/下のタブ項目ヘッダー領域に表示されるコンテンツ。
シンタックス
'宣言
 
Public Property PostTabItemContent As Object
public object PostTabItemContent {get; set;}
使用例
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
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;
    }
<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>
参照