Version

TabItemContentHeight Property

Returns or sets a value that controls the height of the content presenter used to display the 'Content' of the selected tab item.
Syntax
'Declaration
 
Public Property TabItemContentHeight As Double
public double TabItemContentHeight {get; set;}
Example
The following shows how to minimize the tab control, animate its dropdown and specify the tab item content height in orderto maintain a consistent height when the tab control is minimized and dropped down.

For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.

Imports Infragistics.Windows.Controls
Imports System.Windows.Controls.Primitives
Imports System.Diagnostics
Imports System.Windows

Class Window1

    Public Sub New()

        ' This call is required by the Windows Form Designer.
        InitializeComponent()

        ' Add any initialization after the InitializeComponent() call.

        ' Allow the tab control to toggle between its minimized and normal state
        Me.XamTabControl1.AllowMinimize = True

        ' Set the initial state of the control to be minimized
        Me.XamTabControl1.IsMinimized = True

        ' Set the height of the tab item conent when it is dropped down
        Me.XamTabControl1.TabItemContentHeight = 100

        ' specify an animation to be used when dropping down the tab content area
        Me.XamTabControl1.DropDownAnimation = PopupAnimation.Slide

    End Sub

    Private Sub XamTabControl1_DropDownClosed(ByVal sender As Object, ByVal e As RoutedEventArgs) Handles XamTabControl1.DropDownClosed

        Debug.Assert(Me.XamTabControl1.IsDropDownOpen = False)

    End Sub

    Private Sub XamTabControl1_DropDownOpened(ByVal sender As Object, ByVal e As RoutedEventArgs) Handles XamTabControl1.DropDownOpened

        Debug.Assert(Me.XamTabControl1.IsDropDownOpen = True)

    End Sub

End Class
using Infragistics.Windows.Controls;
using System.Diagnostics;
using System.Windows.Controls.Primitives;


    public partial class Window1 : Window
    {
        public Window1()
        {
            InitializeComponent();

            // Allow the tab control to toggle between its minimized and normal state
            this.xamTabControl1.AllowMinimize = true;
            
            // Set the initial state of the control to be minimized
            this.xamTabControl1.IsMinimized = true;

            // Set the height of the tab item conent when it is dropped down
            this.xamTabControl1.TabItemContentHeight = 100;

            // specify an animation to be used when dropping down the tab content area
            this.xamTabControl1.DropDownAnimation = PopupAnimation.Slide;

            // wire the dropdown opened and closed events
            this.xamTabControl1.DropDownOpened += new RoutedEventHandler(xamTabControl1_DropDownOpened);
            this.xamTabControl1.DropDownClosed += new RoutedEventHandler(xamTabControl1_DropDownClosed);
        }

        private void xamTabControl1_DropDownOpened(object sender, RoutedEventArgs e)
        {
            Debug.Assert(this.xamTabControl1.IsDropDownOpen == true);
        }

        private void xamTabControl1_DropDownClosed(object sender, RoutedEventArgs e)
        {
            Debug.Assert(this.xamTabControl1.IsDropDownOpen == false);
        }
    }
<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">
    
<Grid >
        
<igWindows:XamTabControl Name="xamTabControl1" 
             
AllowMinimize="True"
             
IsMinimized="True"
             
TabItemContentHeight="100"
             
DropDownAnimation="Slide"
             
DropDownOpened="xamTabControl1_DropDownOpened"
             
DropDownClosed="xamTabControl1_DropDownClosed" >
            
<igWindows:TabItemEx Header="tabItemEx1" Name="tabItemEx1" >
                
<Grid /> <!-- tab item content goes here -->
            
</igWindows:TabItemEx>
        
</igWindows:XamTabControl>
    
</Grid>
</Window>
Requirements

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

See Also