I have a XamDockManager which has a fixed TabGroupPane in the DocumentContentHost.
Within one of the tabs (ie. the content panes of the TabGroupPane), there's a button which, when clicked, changes the selected tab of the parent TabGroupPane.
This is all well and good but, unfortunately, once the Selected Tab gets changed, the TabGroupPane flips back to the tab with the button in it.
I assume this is to do with some internal layout changed event being fired in the XamDockManager or the TabGroupPane after the tab is changed.
Does anyone know if there are possible workarounds for this?
I suppose I could use a XamTabControl in place of the DocumentContentHost (which doesn't have the flip back problem) but then I lose all the functionality of the DockManager/TabGroupPane which is not desirable.
Thanks in advance.
That's brilliant. Thanks Andrew.
The way I was opening/changing tabs externally from the XamDockManager was by changing the TabGroupPane's SelectedItem and focusing the content which worked fine for that scenario, but to change the tab within another tab, I had to call Activate().
Thank you very much for the pointer.
The dockmanager will ensure that the active pane is the selected item in the associated tab group so I'm guessing that is what is happening here. You probably need to activate the other contentpane either directly using the Activate method of the pane or indirectly by focusing an element within that contentpane (which will actually make it the active pane). If you still have an issue please post a sample and we can review this further.