I would like to inherit from UltraWebTab.Tab (From Infragistics 2008 for .NET 3.5), but am finding that I do not have access to the ViewState object, as it is set as "Friend"! I really would like to add persisting attributes to the class.
Hi,
That is correct, TabItem uses ViewState as internal property. But that is not a main problem. You can not extend Tab or TabSeparator because of Tabs class. To create items (potentially modified/created/removed dynamically) Tabs uses flags for actions and creates items according to those flags. In theory if
private TabItem NewItem(char act)
member of Tabs class was virtual-protected and ViewState of TabItem was protected and Tabs property of UltraWebTab was virtual, then you might extend Tab. But to make it work, you would need to implement and extend not only Tab, but Tabs and UltraWebTab classes as well. It would be some much work and potential bugs that it is not really worth efforts.