Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
345
Inheriting from UltraWebTab.Tab and ViewState
posted

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.

Parents
No Data
Reply
  • 24497
    posted

    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.

Children
No Data