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
415
How to set visible content pane in a TabGroupPane?
posted

I have a tabgroup pane with two contentpane (tabs) in it.  Is there a way via property binding to set which is the visible content pane?

Basically,  if the two panes were for example  'boat summary' and 'car summary', when someone clicks on a boat somplace else I want to activate the 'boat summary' tab regardless of whether it was on top or not.

  • 54937
    Suggested Answer
    Offline posted

    There is no property per se on a ContentPane since the pane is just contained within a PaneTabItem. However if you are just looking for a way to ensure that a given pane is in view then you can call the BringIntoView method of the ContentPane or if you want to shift focus to that element then you can call its Activate method.