My issue is pretty sraight forward. I have a Wintab with three tabs and a routine which walks all the controls on a tab. I pass to it an Infragistics.Win.UltraWinTabPageControl instance and it walks the controls collection on that tab.
It does NOT appear to get the visible "shared controls" when I do this using "For each ctrl in TabPageControl" on a tab that is not visible. It gets all the un-shared controls just fine. I recently updated to 2014.1 release.
HOW do I get all the controls that would be visible on a tab on an UltraTabControl? Thanks.
Hello Bob,
Another way would be to look at the SelectedTab.Tabpage.Controls when a new tab is selected. eg. SelectedTabChanged event.
void ultraTabControl1_SelectedTabChanged(object sender, Infragistics.Win.UltraWinTabControl.SelectedTabChangedEventArgs e){ var selected = ultraTabControl1.SelectedTab.TabPage.Controls; //Step through each control. foreach (Control item in selected) { MessageBox.Show(item.ToString()); }}
Let me know if you have any additional quesitons.
I am able to resolve the issue by walking the entire UltraTabPageControl.Controls collection and the UltraTabControl.SharedControls collection looking for the Visible = True property. This gives ALL the controls on a Tab.
Its a little clunky but it appears to be working.