DockableControlPane contains User control and its docked state is Flying.
Is there any event which fires before closing DockableControlPane.
Note: I am not closing the Form however I am closing only the DockableControlPane.
Hi,
I`m not sure that I understood your scenario, but maybe you could handle BeforePaneButtonClick event and include the code:
private void ultraDockManager1_BeforePaneButtonClick(object sender, Infragistics.Win.UltraWinDock.CancelablePaneButtonEventArgs e) { if (e.Button == Infragistics.Win.UltraWinDock.PaneButton.Close) { Debug.WriteLine("PaneButtonClose"); } }
private void ultraDockManager1_BeforePaneButtonClick(object sender, Infragistics.Win.UltraWinDock.CancelablePaneButtonEventArgs e)
{
if (e.Button == Infragistics.Win.UltraWinDock.PaneButton.Close)
Debug.WriteLine("PaneButtonClose");
}
Please take a look at the attached sample for more details and let me know if you have any questions.