If you double-click on the title bar of a docked pane, it will undock. If you double-click on the title bar of a floating pane, it will go back to its previous docked location. These are really nice features.
However, in neither of these cases, does the AfterDockChange event get raised. Is there some other event that I should be using?
Thanks,
Dana
Hello Dana,
If I understand you correct you are looking for event to occur after a pane’s dock state is toggled from Docked to Floating or vice versa. The AfterToggleDockState event is exactly the one you need. More about this event you can find following the next link http://help.infragistics.com/Doc/WinForms/current/CLR4.0/?page=Infragistics4.Win.UltraWinDock.v14.1~Infragistics.Win.UltraWinDock.UltraDockManager~AfterToggleDockState_EV.html
Please not AfterDockChangeEvent fires up after dock status of a pane has changed, e.g. when the pane has been repositioned. More about AfterDockChangeEvent you can find following next link http://help.infragistics.com/Doc/WinForms/current/CLR4.0/?page=Infragistics4.Win.UltraWinDock.v14.1~Infragistics.Win.UltraWinDock.UltraDockManager~AfterDockChange_EV.html
Please find attached sample solution implementing both AfterToggleDockState and AfterDockChangeEvent events.
Please let me know if this is what you are looking for or if I am missing something.
Thanks.
So, AfterToggleDockState only goes off if you double-click on the caption and not when you drag the panel to become floating/docked and AfterDockChanged only goes off when you drag the panel to become floating/docked but not when you double-click on the caption.
Got it.
Hi Dana,
Yes, AfterToggleDockState and AfterDockChanged works exactly in this way - if you double-click on the caption AfterToggleDockState fires, if you drag the panel AfterDockChanged fires.
Please let me know if you need my further assistance on this matter.
Thank you for using Infragistics Components.