I have a form containing an UltraDockManager and UltraTabbedMdiManager. I've also got a tool ribbon containing statebuttons related to the state of the dock pane (Hide, Floating, Auto-hide).
When the form runs, I open two mdi tabs. I select the second tab. If I then select the close button in the dock pane caption, the pane closes and the first mdi tab becomes selected.
If I reset the pane so it's in view again, select the second tab, but use my statebutton to hide the pane I get mixed results.
I tried adding the BeforePaneButtonClick event for the DockManager. If the Close button is clicked, instead of allowing the default behavour, I run the same method my statebutton click event ran and set e.Cancel to true. This closes the pane, but also changes the selected tab as if it were the default close button click.
It seems that the problem occurs when the pane caption has focus.
Any insight would be welcome!
JL
Thanks MIke! I'll give the workaround a try for now.
It sounds like a bug. I would recommend submitting the issue to the support group: http://es.infragistics.com/gethelp. As a workaround, you can cache the ActiveMdiChild of the parent before calling your method. After calling your method, you can call Activate() on it to select it again.