Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
175
Need Closing event of DockableControlPane
posted

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. 


  • 53790
    posted

    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");

        }

    }

    Please take a look at the attached sample for more details and let me know if you have any questions.

     

    UltraDockManagerWithUserControl.zip