Question

Can a ToolWindowContainer (with AutoHide) have a scroll bar if the tabs overflow?

Posted 3 months ago by Avatar Marcus Jones - LN Systems Limited

If I add lots of the ToolWindows to the ToolWindowContainer then I do not see a scroll bar appear for the tabs using the following xaml. I can right click and see the menu with all of the tabs in it, even though I am not using TabOverflowBehavior=ScrollWithMenu.

Is it possible to have a scroll bar for tab overflow in this situation?

I have the following xaml

 

<Grid>
<docking:DockSite Name="DockSite" >
<docking:DockSite.AutoHideLeftContainers>
<docking:ToolWindowContainer HasCloseButton="False" TabOverflowBehavior="Scroll" >
<docking:ToolWindow Title="Targets" TabTintColor="Green">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="Targets" TabTintColor="Red">

</docking:ToolWindow>
<docking:ToolWindow Title="+">

</docking:ToolWindow>
</docking:ToolWindowContainer>
</docking:DockSite.AutoHideLeftContainers>
<docking:Workspace>
<docking:StandardMdiHost>
<docking:DocumentWindow x:Name="documentWindow1" CanStandardMdiMaximize="False" CanStandardMdiMinimize="False" StandardMdiWindowState="Maximized" CanFloat="False" CanDragToLinkedDockSites="False" CanDragTab="False" CanDock="False" CanClose="False" CanAttach="False" >

</docking:DocumentWindow>
</docking:StandardMdiHost>
</docking:Workspace>
</docking:DockSite>

</Grid>


Comments (1)

Posted 3 months ago by Actipro Software Support - Cleveland, OH, USA

Hi Marcus,

We try to generally mimic what Visual Studio does.  They don't show any scroll UI for auto-hide tabs and have the right-click menu that provides access to any of them, which is what our product does as well.  The TabOverflowBehavior option you mentioned is only for when tool window containers are docked.


Actipro Software Support
Information The latest build of this product (2018.1 build 0674) was released 5 days ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.