Version

DropDownOpened Event

Occurs after the dropdown of the minimized XamTabControl has been opened
Syntax
'Declaration
 
Public Event DropDownOpened As RoutedEventHandler
public event RoutedEventHandler DropDownOpened
Event Data

The event handler receives an argument of type RoutedEventArgs containing data related to this event. The following RoutedEventArgs properties provide information specific to this event.

PropertyDescription
Handled Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route.
OriginalSource Gets the original reporting source as determined by pure hit testing, before any possible System.Windows.RoutedEventArgs.Source adjustment by a parent class.
RoutedEvent Gets or sets the System.Windows.RoutedEventArgs.RoutedEvent associated with this System.Windows.RoutedEventArgs instance.
Source Gets or sets a reference to the object that raised the event.
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