バージョン

OnDropDownClosed メソッド

縮小された XamTabControl のドロップダウンが閉じられた後に発生します。
シンタックス
'宣言
 
Protected Overridable Sub OnDropDownClosed( _
   ByVal args As RoutedEventArgs _
) 
protected virtual void OnDropDownClosed( 
   RoutedEventArgs args
)

パラメータ

args
使用例
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>
参照