Ok I have an UltraTabControl on tab on my and I'm trying to a tabbed single document interface. I enabled the close buttons on the tabs and it works we cause the tabs are closed when you click them, but the weirdness is that if you loop through the tab collection they are still in there. So I went looking for a "tab closed" event to manually remove them from the collection, but there doen't seem to be one. Am I missing something?
As you've noticed, the "close" functionality of a tab doesn't remove the tab from the Tabs collection of WinTabControl. Instead, it hides the tab.
WinTabControl has a TabClosed event, which sounds like what you're looking for. The following forum post describes removing the "closed" tab from the Tabs collection in this event:http://forums.infragistics.com/forums/t/12568.aspx
Shouldn't the tabs be removed as opposed to hidden by default?
I just ran into this and it is pretty annoying. I had already done what was suggested and removed it in the TabClosed event. Instead of forcing devs to manually do this can a property be added to the TabControl that would remove the tabs on close rather than just hiding?
I get the whole re-open thing but the standard is to remove them (at least in my limited experience).
The default functionality of "closing" a tab is to hide it. This is to allow the tab to be later "re-opened" without having to recreate it and its contents from scratch. The ability to remove the tab in response to TabClosing or TabClosed is the way we've provided to implement this functionality.