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
150
TabItemPanel Query
posted

I'm using a TabGroupPane with style set to use a TabItemPanel rather than the default DocumenHost which is all working the way I want it except for one detail.

As I add new tabs they appear to the right as I want but once the right edge of the window is hit the new tabs are no longer visible.  What I'd like is to be able to scroll the tabs or hide the furthest left tabs so the new tabs are still visible but I can't seem to find away to scroll the tabs.

So I'm wondering if there's something simple setting I'm missing?  I'd also like to display the scroll buttons by default (the buttons that appear if you shrink the window to the point where tabs can no longer compress (in a floating window))

  • 54937
    Offline posted

    The default template for the TabGroupPane when in the DocumentContentHost is set up such that it has no scrolling elements (since its default panel does not provide any form of scrolling). So if you want scrolling then you would need to provide a custom template for the TabGroupPane when in that area (i.e. creating a ControlTemplate whose key is x:Static igDock:TabGroupPane.DocumentTabGroupTemplateKey). Perhaps you can look at the default templates included in the DefaultStyles directory as a starting point. The default template for the DockableTabGroupTemplateKey does include scrolling elements so you might want to review how it provides scrolling.