Version

PanesEventHandler Delegate

Delegate for handling an event involving one or more DockablePaneBase instances.
Syntax
'Declaration
 
Public Delegate Sub PanesEventHandler( _
   ByVal sender As Object, _
   ByVal e As PanesEventArgs _
) 
public delegate void PanesEventHandler( 
   object sender,
   PanesEventArgs e
)

Parameters

sender
e
Example
The following code listens to the AfterSplitterDrag event and logs which panes have been resized.

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_AfterSplitterDrag(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinDock.PanesEventArgs) Handles ultraDockManager1.AfterSplitterDrag

    ' AfterSplitterDrag fires after the splitter bar adjacent to a
    ' DockAreaPane, between two panes in a horizontal or vertical
    ' split group, or adjacent to a control pane in a
    ' flyout window is released.

    If (e.Panes.Length = 1) Then
        Debug.Write(String.Format("After Splitter Drag: '{0}'", e.Panes(0).ToString()))
    ElseIf (e.Panes.Length = 2) Then
        Debug.Write(String.Format("The splitter between '{0}' and '{1}' has been repositioned.", e.Panes(0), e.Panes(1)))
    End If

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

private void ultraDockManager1_AfterSplitterDrag(object sender, Infragistics.Win.UltraWinDock.PanesEventArgs e)
{

	// AfterSplitterDrag fires after the splitter bar adjacent to a
	// DockAreaPane, between two panes in a horizontal or vertical
	// split group, or adjacent to a control pane in a
	// flyout window is released.
		
	if (e.Panes.Length == 1)
		Debug.Write( string.Format("After Splitter Drag: '{0}'", e.Panes[0].ToString()) );
	else if (e.Panes.Length == 2)
		Debug.Write( string.Format("The splitter between '{0}' and '{1}' has been repositioned.", e.Panes[0], e.Panes[1]) );

}
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