Version

AfterPaneButtonClick Event

Occurs after the action associated with a PaneButton is executed.
Syntax
'Declaration
 
Public Event AfterPaneButtonClick As PaneButtonEventHandler
public event PaneButtonEventHandler AfterPaneButtonClick
Event Data

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

PropertyDescription
Button Returns the PaneButton associated with the event.
Pane Returns the pane associated with the event.
Example
The following code demonstrates how to use the AfterPaneButtonClick to provide feedback to the user.

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_AfterPaneButtonClick(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinDock.PaneButtonEventArgs) Handles ultraDockManager1.AfterPaneButtonClick

    ' The AfterPaneButtonClick provides a notification 
    ' after the action associated with clicking a pane caption
    ' button has been invoked.
    '

    ' Let the user know how to display the window again
    ' if they close it
    '
    If (e.Button = PaneButton.Close) Then
        MessageBox.Show(Me, _
            String.Format("The '{0}' window was closed. To show the window again, select the window from the 'View' menu.", e.Pane.Text), _
            Application.ProductName, _
            MessageBoxButtons.OK, _
            MessageBoxIcon.Information)
    End If

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

private void ultraDockManager1_AfterPaneButtonClick(object sender, Infragistics.Win.UltraWinDock.PaneButtonEventArgs e)
{

	// The AfterPaneButtonClick provides a notification 
	// after the action associated with clicking a pane caption
	// button has been invoked.
	//

	// Let the user know how to display the window again
	// if they close it
	//
	if (e.Button == PaneButton.Close)
	{
		MessageBox.Show(this, 
			string.Format("The '{0}' window was closed. To show the window again, select the window from the 'View' menu.",e.Pane.Text),
			Application.ProductName,
			MessageBoxButtons.OK,
			MessageBoxIcon.Information);
	}

}
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