Hi,
I am using xamtab control i want to add tab items in a dropdown list instead of scroll when number of tabs exced from its limit like pages/windows in dropdown list in visual studio.
Hi, I just tested you solution and it works fine, but it introduces a memory leak if you would get rid of the grid at some point, because the tabItems are bound to a popup which has a very long lifecycle.
Also if you select the tabItem using "IsSelected", the tab control will not scroll to the tab item if it is not visible (in contrast to using the selection mechanism on the tab control)
Well if the tab's visibility is changing them maybe you could bind the Visibility of the menu item (again in the ItemContainerStyle) to the Visibility of the underlying tabitem.
Sorry, I just find out that I need to remove the tabs in the Items list by my self.
I need to do exactly the same thing. I tried your solution. I have a problem to refresh the list after closing a tab. The closed tabs remain in the menu. There is no event on the XamTabControl Items property when the list changes.
Any suggestions?
Thanks
Karine
xamDockManager provides that functionality for the document tab groups within its DocumentContentHost (analogous to VS' tabbed documents) but this isn't something directly provided by the xamTabControl. You could probably put a Menu in the PostTabItemContent area that creates a menu item for each item in the tab control. e.g.