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
2320
Change Selected Tab from another Tab
posted

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.

 

Parents
No Data
Reply
  • 54937
    Verified Answer
    Offline posted

    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.

Children