How to control Tab Display

Docking/MDI for WPF Forum

Posted 16 years ago by David Mullin
Version: 4.5.0475
If I have a ToolWindowContainer with a large number of ToolWindows in it, I end up with a bunch of tiny little tabs all scrunched together. Is there any way to change this? What I'd really like is something like what is on top of the Workspace portion (i.e., tabs that are big enough for their content with a dropdown off to the side to select ones that may have scrolled off the side) - only at the bottom. Or something like Excel, which, again, autosizes the tabs, but has navigation arrows to scroll through the tabs. Or, even the ability to replace the tabs with a combobox if there are more than some number.

I've included a sample XAML

<ribbon:RibbonWindow x:Class="SearchScreenIdea.Window1"
                     Height="900" Width="1000">
        <docking:DockSite Background="Transparent" CanToolWindowsClose="False" ToolWindowsHaveOptions="False" AutoHidePopupCloseAnimationDuration="0:0:0.2">
                    <docking:ToolWindow Title="Query Set 1" />
                    <docking:ToolWindow Title="Query Set 2" />
                    <docking:ToolWindow Title="Query Set 3" />
                    <docking:ToolWindow Title="Query Set 4" />
                    <docking:ToolWindow Title="Query Set 5" />
                    <docking:ToolWindow Title="Query Set 6" />
                    <docking:ToolWindow Title="Query Set 7" />
                    <docking:ToolWindow Title="Query Set 8" />
                    <docking:ToolWindow Title="Query Set 9" />
Thanks in advance!

David Mullin
IMA Technologies

Comments (1)

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Right now the only way to change it would be to change the default template for ToolWindowContainer and insert a custom panel that is the items host, since the current one probably wouldn't have the behavior that you need for what you wanted to do. If you have the XAML templates you can do this.

The default panel in use (like Visual Studio) assumes that for narrow tool window containers, you aren't going to have more than a handful of tool windows in there.

Actipro Software Support

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.