'Declaration Public Event AfterPaneButtonClick As PaneButtonEventHandler
public event PaneButtonEventHandler AfterPaneButtonClick
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.
Property | Description |
---|---|
Button | Returns the PaneButton associated with the event. |
Pane | Returns the pane associated with the event. |
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); } }
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