Version

ControlPaneEventArgs Class

Event parameters used for events which pass a single DockableControlPane.
Syntax
'Declaration
 
Public Class ControlPaneEventArgs 
   Inherits System.EventArgs
public class ControlPaneEventArgs : System.EventArgs 
Example
The following code listens to the dock manager's AfterToggleDockState to log when a pane has been switched between its floating and docked state by double clicking the pane caption or tab item.

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.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinDock

Private Sub ultraDockManager1_AfterToggleDockState(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinDock.PaneEventArgs) Handles ultraDockManager1.AfterToggleDockState

    ' The AfterToggleDockState is invoked after a pane's
    ' docked location was changed from docked to floating
    ' or floating to docked by double clicking on the pane
    ' caption or the tab item.
    '

    If (e.Pane.DockedState = DockedState.Floating) Then
        Debug.WriteLine(String.Format("The pane '{0}' was toggled from docked to floating", e.Pane.Key))
    Else
        Debug.WriteLine(String.Format("The pane '{0}' was toggled from floating to docked", e.Pane.Key))
    End If

End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinDock;
using System.Diagnostics;

private void ultraDockManager1_AfterToggleDockState(object sender, Infragistics.Win.UltraWinDock.PaneEventArgs e)
{

	// The AfterToggleDockState is invoked after a pane's
	// docked location was changed from docked to floating
	// or floating to docked by double clicking on the pane
	// caption or the tab item.
	//

	if (e.Pane.DockedState == DockedState.Floating)
		Debug.WriteLine( string.Format("The pane '{0}' was toggled from docked to floating", e.Pane.Key) );
	else
		Debug.WriteLine( string.Format("The pane '{0}' was toggled from floating to docked", e.Pane.Key) );

}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, 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