Adding a TabItem to an existing derived TabControl in WPF
My project contains a class, Symbol, which derives from UserControl and adds some custom dps etc... In code, Symbol also implements a Popup containing a TabControl along with the relevant click handlers to make this popup appear. Any objects which derive from Symbol have this popup which works fine.
I now need to be able to add new custom TabItems to the TabControl in the derived classes. I can do this in my code behind file but was wondering what the correct syntax is in WPF to add a TabItem to a parent's TabControl.